Skip to content

Commit 3177b0a

Browse files
committed
fix: address comments again
Signed-off-by: yihong0618 <[email protected]>
1 parent fe34228 commit 3177b0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ def test_getheightwidth_with_invalid_environ(self, _os_write):
304304
os.environ = []
305305
self.assertIsInstance(console.getheightwidth(), tuple)
306306

307-
@unittest.skipUnless(sys.platform == "darwin", "requires OS X")
308-
def test_restore_with_invalid_environ_on_macOS(self, _os_write):
307+
@unittest.skipUnless(sys.platform == "darwin", "requires macOS")
308+
def test_restore_with_invalid_environ_on_macos(self, _os_write):
309309
# gh-128636 for macOS
310310
console = UnixConsole(term="xterm")
311-
with os_helper.EnvironmentVarGuard() as env:
311+
with os_helper.EnvironmentVarGuard():
312312
os.environ = []
313313
console.prepare() # needed to call restore()
314314
console.restore() # this should succeed

0 commit comments

Comments
 (0)