##// END OF EJS Templates
tests: port test-cbor.py to Python 3...
Augie Fackler -
r37916:2b3b6187 default
parent child Browse files
Show More
@@ -36,6 +36,7 b' test-bundle2-multiple-changegroups.t'
36 test-cappedreader.py
36 test-cappedreader.py
37 test-casecollision.t
37 test-casecollision.t
38 test-cat.t
38 test-cat.t
39 test-cbor.py
39 test-censor.t
40 test-censor.t
40 test-changelog-exec.t
41 test-changelog-exec.t
41 test-check-commit.t
42 test-check-commit.t
@@ -69,7 +69,7 b' class BytestringTests(unittest.TestCase)'
69
69
70 dest = b''.join(cborutil.streamencodeindefinitebytestring(
70 dest = b''.join(cborutil.streamencodeindefinitebytestring(
71 source, chunksize=42))
71 source, chunksize=42))
72 self.assertEqual(cbor.loads(dest), b''.join(source))
72 self.assertEqual(cbor.loads(dest), source)
73
73
74 def testreadtoiter(self):
74 def testreadtoiter(self):
75 source = io.BytesIO(b'\x5f\x44\xaa\xbb\xcc\xdd\x43\xee\xff\x99\xff')
75 source = io.BytesIO(b'\x5f\x44\xaa\xbb\xcc\xdd\x43\xee\xff\x99\xff')
General Comments 0
You need to be logged in to leave comments. Login now