Fix ordering of sys modules snapshot

This commit is contained in:
Anthony Sottile 2019-07-20 11:17:30 -07:00
parent c98e7aed94
commit 27c9d80a7e
1 changed files with 1 additions and 1 deletions

View File

@ -231,8 +231,8 @@ class TestInlineRunModulesCleanup:
):
spy_factory = self.spy_factory()
monkeypatch.setattr(pytester, "SysModulesSnapshot", spy_factory)
original = dict(sys.modules)
testdir.syspathinsert()
original = dict(sys.modules)
testdir.makepyfile(import1="# you son of a silly person")
testdir.makepyfile(import2="# my hovercraft is full of eels")
test_mod = testdir.makepyfile(