MCPcopy
hub / github.com/django/django / test_picklable

Method test_picklable

tests/test_runner/test_parallel.py:167–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 self.assertIs(result.wasSuccessful(), False)
166
167 def test_picklable(self):
168 result = RemoteTestResult()
169 loaded_result = pickle.loads(pickle.dumps(result))
170 self.assertEqual(result.events, loaded_result.events)
171
172 def test_pickle_errors_detection(self):
173 picklable_error = RuntimeError("This is fine")

Callers

nothing calls this directly

Calls 3

RemoteTestResultClass · 0.90
loadsMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected