@@ -934,21 +934,14 @@ def test_python_dump_refs_file(self):
934934 contents = file .read ()
935935 self .assertIn ('Remaining objects' , contents )
936936
937- @unittest .skipUnless (sys .platform == 'darwin' , 'PYTHONEXECUTABLE only works on macOS' )
938- def test_python_executable (self ):
939- code = 'import sys; print(sys.executable)'
940- expected = "/busr/bbin/bpython"
941- rc , out , err = assert_python_ok ('-c' , code , PYTHONEXECUTABLE = expected )
942- self .assertIn (expected .encode (), out )
943-
944- @unittest .skipUnless (sys .platform == 'win32' , 'Test only applicable on Windows' )
937+ @unittest .skipUnless (support .MS_WINDOWS , 'Test only applicable on Windows' )
945938 def test_python_legacy_windows_fs_encoding (self ):
946939 code = "import sys; print(sys.getfilesystemencoding())"
947940 expected = 'mbcs'
948941 rc , out , err = assert_python_ok ('-c' , code , PYTHONLEGACYWINDOWSFSENCODING = '1' )
949942 self .assertIn (expected .encode (), out )
950943
951- @unittest .skipUnless (sys . platform == 'win32' , 'Test only applicable on Windows' )
944+ @unittest .skipUnless (support . MS_WINDOWS , 'Test only applicable on Windows' )
952945 def test_python_legacy_windows_stdio (self ):
953946 code = "import sys; print(sys.stdin.encoding, sys.stdout.encoding)"
954947 expected = 'cp'
0 commit comments