PYTHON-977 - avoid 'b' string prefix for Python version compatibility in tests.
This commit is contained in:
parent
18054a19fc
commit
819febc041
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user