File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,16 @@ def test_excepthook_call():
6363 mock_excepthook .assert_called_once_with ("mock_type" , "mock_value" , "mock_traceback" )
6464
6565def 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
7373def 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" )
You can’t perform that action at this time.
0 commit comments