diff --git a/test/test_binary.py b/test/test_binary.py index 587bcdf91..86fc75963 100644 --- a/test/test_binary.py +++ b/test/test_binary.py @@ -105,11 +105,11 @@ class TestBinary(unittest.TestCase): "Binary(%s, 100)" % (repr(b("test")),)) def test_hash(self): - one = Binary(b"hello world") - two = Binary(b"hello world", 42) - 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)) self.assertNotEqual(hash(one), hash(two)) - self.assertEqual(hash(Binary(b"hello world", 42)), hash(two)) + self.assertEqual(hash(Binary(b("hello world"), 42)), hash(two)) def test_legacy_java_uuid(self): if not should_test_uuid: