mongodb-labs / python-bsonjs

A fast BSON to MongoDB Extended JSON converter for Python - This Repository is NOT a supported MongoDB product
Apache License 2.0
40 stars 10 forks source link

Test_binary failing #21

Closed juliusgeo closed 4 years ago

juliusgeo commented 4 years ago

Currently on master the test_binary test fails with the following error:

FAIL: test_binary (test.test_bsonjs.TestBsonjs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/julius/python-bsonjs/test/test_bsonjs.py", line 195, in test_binary
    self.round_trip(bin_type_dict)
  File "/Users/julius/python-bsonjs/test/test_bsonjs.py", line 79, in round_trip
    self.assertEqual(doc, json_util.loads(
AssertionError: {'bin': Binary(b'\x00\x01\x02\x03\x04', 0)} != {'bin': b'\x00\x01\x02\x03\x04'}
- {'bin': Binary(b'\x00\x01\x02\x03\x04', 0)}
?         -------                       ----
+ {'bin': b'\x00\x01\x02\x03\x04'}