Skip to content

Commit 819febc

Browse files
author
Luke Lovett
committed
PYTHON-977 - avoid 'b' string prefix for Python version compatibility in tests.
1 parent 18054a1 commit 819febc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_binary.py

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

107107
def test_hash(self):
108-
one = Binary(b"hello world")
109-
two = Binary(b"hello world", 42)
110-
self.assertEqual(hash(Binary(b"hello world")), hash(one))
108+
one = Binary(b("hello world"))
109+
two = Binary(b("hello world"), 42)
110+
self.assertEqual(hash(Binary(b("hello world"))), hash(one))
111111
self.assertNotEqual(hash(one), hash(two))
112-
self.assertEqual(hash(Binary(b"hello world", 42)), hash(two))
112+
self.assertEqual(hash(Binary(b("hello world"), 42)), hash(two))
113113

114114
def test_legacy_java_uuid(self):
115115
if not should_test_uuid:

0 commit comments

Comments
 (0)