There was an error while loading. Please reload this page.
1 parent 3321b66 commit d5d1d03Copy full SHA for d5d1d03
test/test_binary.py
@@ -130,11 +130,11 @@ def test_repr(self):
130
"Binary(%s, 100)" % (repr(b"test"),))
131
132
def test_hash(self):
133
- one = Binary(b"hello world")
134
- two = Binary(b"hello world", 42)
135
- self.assertEqual(hash(Binary(b"hello world")), hash(one))
+ one = Binary(b("hello world"))
+ two = Binary(b("hello world"), 42)
+ self.assertEqual(hash(Binary(b("hello world"))), hash(one))
136
self.assertNotEqual(hash(one), hash(two))
137
- self.assertEqual(hash(Binary(b"hello world", 42)), hash(two))
+ self.assertEqual(hash(Binary(b("hello world"), 42)), hash(two))
138
139
def test_legacy_java_uuid(self):
140
# Test decoding
0 commit comments