Skip to content

Commit 13c4b7d

Browse files
authored
Merge pull request #5636 from asottile/fixup_sysmodules_test
Fix ordering of sys modules snapshot
2 parents cb828eb + 27c9d80 commit 13c4b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_pytester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def test_inline_run_taking_and_restoring_a_sys_modules_snapshot(
231231
):
232232
spy_factory = self.spy_factory()
233233
monkeypatch.setattr(pytester, "SysModulesSnapshot", spy_factory)
234-
original = dict(sys.modules)
235234
testdir.syspathinsert()
235+
original = dict(sys.modules)
236236
testdir.makepyfile(import1="# you son of a silly person")
237237
testdir.makepyfile(import2="# my hovercraft is full of eels")
238238
test_mod = testdir.makepyfile(

0 commit comments

Comments
 (0)