(self)
| 1576 | sys.modules.pop("_faulty_module", None) |
| 1577 | |
| 1578 | def test_function_module_name(self): |
| 1579 | def local_func(x): |
| 1580 | return x |
| 1581 | |
| 1582 | for func in [local_func, lambda x: x]: |
| 1583 | cloned = pickle_depickle(func, protocol=self.protocol) |
| 1584 | self.assertEqual(cloned.__module__, func.__module__) |
| 1585 | |
| 1586 | def test_function_qualname(self): |
| 1587 | def func(x): |
nothing calls this directly
no test coverage detected