Skip to content

Commit

Permalink
Remove accidentally-copied testcases.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jun 7, 2013
1 parent d39b6b4 commit 4edd6c7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/zodbpickle/tests/pickletester_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,25 +1333,6 @@ def test_dump_dumps(self):
p = pickle.dumps(b'\x00', protocol=0, bytes_as_strings=True)
self.assertEqual(p, b"S'\\x00'\n.")

def test_save_bytes_roundtrip(self):
for proto in protocols:
for ch in range(256):
data = bytes([ch])
pickled = self.dumps(data, proto, bytes_as_strings=True)
unpickled = self.loads(pickled, encoding='bytes')
self.assertEqual(unpickled, data)

def test_dump_dumps(self):
# see that the bytes_as_string kwarg is accepted everywhere
# (the other tests go throught the Pickler API)
# XXX: this is not very abstract; the only way to test the Python
# implementation of dump and dumps is to remove the C module
f = io.BytesIO()
pickle.dump(b'\x00', f, protocol=0, bytes_as_strings=True)
self.assertEqual(f.getvalue(), b"S'\\x00'\n.")
p = pickle.dumps(b'\x00', protocol=0, bytes_as_strings=True)
self.assertEqual(p, b"S'\\x00'\n.")


class _BigmemPickleTests(unittest.TestCase):

Expand Down

0 comments on commit 4edd6c7

Please sign in to comment.