(assertion, exception, obj)
| 168 | assertion(loads(dumps(source, protocol=protocol)), target) |
| 169 | |
| 170 | def test_pickle_exception(assertion, exception, obj): |
| 171 | for protocol in range(HIGHEST_PROTOCOL + 1): |
| 172 | with assertion(exception): |
| 173 | dumps(obj, protocol=protocol) |
| 174 | |
| 175 | class TestHelpers(unittest.TestCase): |
| 176 | # _is_descriptor, _is_sunder, _is_dunder |
no test coverage detected
searching dependent graphs…