MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / test_w_mode

Method test_w_mode

tests/cloudpickle_file_test.py:51–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 os.remove(self.tmpfilepath)
50
51 def test_w_mode(self):
52 with open(self.tmpfilepath, "w") as f:
53 f.write(self.teststring)
54 f.seek(0)
55 self.assertRaises(pickle.PicklingError, lambda: cloudpickle.dumps(f))
56 os.remove(self.tmpfilepath)
57
58 def test_plus_mode(self):
59 # Write, then seek to 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected