Skip to content

Commit 51c6620

Browse files
committed
stop messing with other tests
1 parent 6e216e2 commit 51c6620

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_files/tests/test_shell_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ def test_excepthook_call():
6363
mock_excepthook.assert_called_once_with("mock_type", "mock_value", "mock_traceback")
6464

6565
def test_print_statement_darwin(monkeypatch):
66-
monkeypatch.setattr(sys, 'platform', 'darwin')
6766
with monkeypatch.context() as m:
67+
m.setattr(sys, 'platform', 'darwin')
6868
m.setattr('builtins.print', Mock())
6969
importlib.reload(sys.modules['pythonrc'])
7070
print.assert_any_call("Cmd click to launch VS Code Native REPL")
7171

7272

7373
def test_print_statement_non_darwin(monkeypatch):
74-
monkeypatch.setattr(sys, 'platform', 'win32')
7574
with monkeypatch.context() as m:
75+
m.setattr(sys, 'platform', 'win32')
7676
m.setattr('builtins.print', Mock())
7777
importlib.reload(sys.modules['pythonrc'])
7878
print.assert_any_call("Ctrl click to launch VS Code Native REPL")

0 commit comments

Comments
 (0)