(pickle_with_and_without_subtree_filesystem)
| 1796 | |
| 1797 | |
| 1798 | def test_py_filesystem_pickling(pickle_with_and_without_subtree_filesystem): |
| 1799 | pickle_module = pickle_with_and_without_subtree_filesystem |
| 1800 | handler = DummyHandler() |
| 1801 | fs = PyFileSystem(handler) |
| 1802 | |
| 1803 | serialized = pickle_module.dumps(fs) |
| 1804 | restored = pickle_module.loads(serialized) |
| 1805 | assert isinstance(restored, FileSystem) |
| 1806 | assert restored == fs |
| 1807 | assert restored.handler == handler |
| 1808 | assert restored.type_name == "py::dummy" |
| 1809 | |
| 1810 | |
| 1811 | def test_py_filesystem_lifetime(): |
nothing calls this directly
no test coverage detected