There was an error while loading. Please reload this page.
1 parent 1ac3bfa commit 5f14441Copy full SHA for 5f14441
1 file changed
Lib/test/test_curses.py
@@ -3459,6 +3459,8 @@ def test_use_prescr_screen(self):
3459
with self.assertRaises(curses.error):
3460
prescr.use(func)
3461
# Affecting the state before initscr() is what such a screen is for.
3462
+ # use_env() is process-wide, not a property of this screen.
3463
+ self.addCleanup(curses.use_env, True)
3464
prescr.use(lambda scr: curses.use_env(False))
3465
# The current screen is unchanged.
3466
screen.stdscr.refresh()
0 commit comments