MCPcopy Create free account
hub / github.com/PyCQA/flake8 / reset_sys

Function reset_sys

tests/unit/plugins/finder_test.py:699–705  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

697
698@pytest.fixture
699def reset_sys():
700 orig_path = sys.path[:]
701 orig_modules = sys.modules.copy()
702 yield
703 sys.path[:] = orig_path
704 sys.modules.clear()
705 sys.modules.update(orig_modules)
706
707
708@pytest.mark.usefixtures("reset_sys")

Callers

nothing calls this directly

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected