@@ -233,6 +233,8 @@ def test_basic_script(self):
233233 importlib .machinery .SourceFileLoader ,
234234 expected_cwd = script_dir )
235235
236+ # TODO: RUSTPYTHON
237+ @unittest .expectedFailure
236238 def test_script_abspath (self ):
237239 # pass the script using the relative path, expect the absolute path
238240 # in __file__
@@ -413,6 +415,8 @@ def test_issue8202(self):
413415 script_name , script_name , script_dir , 'test_pkg' ,
414416 importlib .machinery .SourceFileLoader )
415417
418+ # TODO: RUSTPYTHON
419+ @unittest .expectedFailure
416420 def test_issue8202_dash_c_file_ignored (self ):
417421 # Make sure a "-c" file in the current directory
418422 # does not alter the value of sys.path[0]
@@ -519,6 +523,8 @@ def test_dash_m_bad_pyc(self):
519523 self .assertNotIn (b'is a package' , err )
520524 self .assertNotIn (b'Traceback' , err )
521525
526+ # TODO: RUSTPYTHON
527+ @unittest .expectedFailure
522528 def test_hint_when_triying_to_import_a_py_file (self ):
523529 with os_helper .temp_dir () as script_dir , \
524530 os_helper .change_cwd (path = script_dir ):
@@ -596,8 +602,6 @@ def test_non_ascii(self):
596602 'stdout=%r stderr=%r' % (stdout , stderr ))
597603 self .assertEqual (0 , rc )
598604
599- # TODO: RUSTPYTHON
600- @unittest .expectedFailure
601605 def test_issue20500_exit_with_exception_value (self ):
602606 script = textwrap .dedent ("""\
603607 import sys
@@ -772,10 +776,14 @@ def test_nonexisting_script(self):
772776 self .assertIn (": can't open file " , err )
773777 self .assertNotEqual (proc .returncode , 0 )
774778
775- def tearDownModule ():
779+ # TODO: RUSTPYTHON
780+ # def tearDownModule():
781+ def test_main ():
782+ support .run_unittest (CmdLineTest )
776783 support .reap_children ()
777784
778785
779786if __name__ == '__main__' :
780- unittest .main ()
781-
787+ # TODO: RUSTPYTHON
788+ # unittest.main()
789+ test_main ()
0 commit comments