Confirm that obj can be pickled and unpickled as multiprocessing will need to pickle the exception in the child process and unpickle it in the parent process. Let the exception rise, if not.
(self, obj)
| 199 | return self.testsRun - 1 |
| 200 | |
| 201 | def _confirm_picklable(self, obj): |
| 202 | """ |
| 203 | Confirm that obj can be pickled and unpickled as multiprocessing will |
| 204 | need to pickle the exception in the child process and unpickle it in |
| 205 | the parent process. Let the exception rise, if not. |
| 206 | """ |
| 207 | pickle.loads(pickle.dumps(obj)) |
| 208 | |
| 209 | def _print_unpicklable_subtest(self, test, subtest, pickle_exc): |
| 210 | print(""" |