(self)
| 4473 | self.assertEqual(pickle.HIGHEST_PROTOCOL, 5) |
| 4474 | |
| 4475 | def test_callapi(self): |
| 4476 | f = io.BytesIO() |
| 4477 | # With and without keyword arguments |
| 4478 | self.dump(123, f, -1) |
| 4479 | self.dump(123, file=f, protocol=-1) |
| 4480 | self.dumps(123, -1) |
| 4481 | self.dumps(123, protocol=-1) |
| 4482 | self.Pickler(f, -1) |
| 4483 | self.Pickler(f, protocol=-1) |
| 4484 | |
| 4485 | def test_dump_text_file(self): |
| 4486 | f = open(TESTFN, "w") |