File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 22import platform
33import sys
44from unittest .mock import Mock
5+
56import pythonrc
67
78is_wsl = "microsoft-standard-WSL" in platform .release ()
@@ -61,15 +62,19 @@ def test_excepthook_call():
6162 hooks .my_excepthook ("mock_type" , "mock_value" , "mock_traceback" )
6263 mock_excepthook .assert_called_once_with ("mock_type" , "mock_value" , "mock_traceback" )
6364
65+
6466if sys .platform == "darwin" :
67+
6568 def test_print_statement_darwin (monkeypatch ):
6669 importlib .reload (pythonrc )
6770 with monkeypatch .context () as m :
6871 m .setattr ("builtins.print" , Mock ())
6972 importlib .reload (sys .modules ["pythonrc" ])
7073 print .assert_any_call ("Cmd click to launch VS Code Native REPL" )
7174
75+
7276if sys .platform == "win32" :
77+
7378 def test_print_statement_non_darwin (monkeypatch ):
7479 importlib .reload (pythonrc )
7580 with monkeypatch .context () as m :
You can’t perform that action at this time.
0 commit comments