(self)
| 23 | shutil.rmtree(self.tmpdir) |
| 24 | |
| 25 | def test_empty_file(self): |
| 26 | # Empty file |
| 27 | open(self.tmpfilepath, "w").close() |
| 28 | with open(self.tmpfilepath) as f: |
| 29 | self.assertEqual("", pickle.loads(cloudpickle.dumps(f)).read()) |
| 30 | os.remove(self.tmpfilepath) |
| 31 | |
| 32 | def test_closed_file(self): |
| 33 | # Write & close |