Skip to content

Commit

Permalink
Merge pull request pytest-dev#5636 from asottile/fixup_sysmodules_test
Browse files Browse the repository at this point in the history
Fix ordering of sys modules snapshot
  • Loading branch information
asottile committed Jul 20, 2019
2 parents cb828eb + 27c9d80 commit 13c4b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def test_inline_run_taking_and_restoring_a_sys_modules_snapshot(
):
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(
Expand Down

0 comments on commit 13c4b7d

Please sign in to comment.