Skip to content

Commit d5d1d03

Browse files
author
Luke Lovett
committed
PYTHON-977 - avoid 'b' string prefix for Python version compatibility in tests.
1 parent 3321b66 commit d5d1d03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_binary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ def test_repr(self):
130130
"Binary(%s, 100)" % (repr(b"test"),))
131131

132132
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))
133+
one = Binary(b("hello world"))
134+
two = Binary(b("hello world"), 42)
135+
self.assertEqual(hash(Binary(b("hello world"))), hash(one))
136136
self.assertNotEqual(hash(one), hash(two))
137-
self.assertEqual(hash(Binary(b"hello world", 42)), hash(two))
137+
self.assertEqual(hash(Binary(b("hello world"), 42)), hash(two))
138138

139139
def test_legacy_java_uuid(self):
140140
# Test decoding

0 commit comments

Comments
 (0)