Skip to content

Commit 9eefc1e

Browse files
committed
Testdir.finalize: skip monkeypatch.undo()
This gets done via the fixture itself. Ref: pytest-dev#6219 (comment)
1 parent f3f82d7 commit 9eefc1e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/_pytest/pytester.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ def finalize(self):
593593
self._sys_modules_snapshot.restore()
594594
self._sys_path_snapshot.restore()
595595
self._cwd_snapshot.restore()
596-
self.monkeypatch.undo()
597596

598597
def __take_sys_modules_snapshot(self):
599598
# some zope modules used by twisted-related tests keep internal state

0 commit comments

Comments
 (0)