@@ -242,17 +242,13 @@ def test_script_compiled(self):
242242 pyc_file , script_dir , None ,
243243 importlib .machinery .SourcelessFileLoader )
244244
245- # TODO: RUSTPYTHON
246- @unittest .expectedFailure
247245 def test_directory (self ):
248246 with support .temp_dir () as script_dir :
249247 script_name = _make_test_script (script_dir , '__main__' )
250248 self ._check_script (script_dir , script_name , script_dir ,
251249 script_dir , '' ,
252250 importlib .machinery .SourceFileLoader )
253251
254- # TODO: RUSTPYTHON
255- @unittest .expectedFailure
256252 def test_directory_compiled (self ):
257253 with support .temp_dir () as script_dir :
258254 script_name = _make_test_script (script_dir , '__main__' )
@@ -263,24 +259,18 @@ def test_directory_compiled(self):
263259 script_dir , '' ,
264260 importlib .machinery .SourcelessFileLoader )
265261
266- # TODO: RUSTPYTHON
267- @unittest .expectedFailure
268262 def test_directory_error (self ):
269263 with support .temp_dir () as script_dir :
270264 msg = "can't find '__main__' module in %r" % script_dir
271265 self ._check_import_error (script_dir , msg )
272266
273- # TODO: RUSTPYTHON
274- @unittest .expectedFailure
275267 def test_zipfile (self ):
276268 with support .temp_dir () as script_dir :
277269 script_name = _make_test_script (script_dir , '__main__' )
278270 zip_name , run_name = make_zip_script (script_dir , 'test_zip' , script_name )
279271 self ._check_script (zip_name , run_name , zip_name , zip_name , '' ,
280272 zipimport .zipimporter )
281273
282- # TODO: RUSTPYTHON
283- @unittest .expectedFailure
284274 def test_zipfile_compiled_timestamp (self ):
285275 with support .temp_dir () as script_dir :
286276 script_name = _make_test_script (script_dir , '__main__' )
@@ -313,17 +303,13 @@ def test_zipfile_compiled_unchecked_hash(self):
313303 self ._check_script (zip_name , run_name , zip_name , zip_name , '' ,
314304 zipimport .zipimporter )
315305
316- # TODO: RUSTPYTHON
317- @unittest .expectedFailure
318306 def test_zipfile_error (self ):
319307 with support .temp_dir () as script_dir :
320308 script_name = _make_test_script (script_dir , 'not_main' )
321309 zip_name , run_name = make_zip_script (script_dir , 'test_zip' , script_name )
322310 msg = "can't find '__main__' module in %r" % zip_name
323311 self ._check_import_error (zip_name , msg )
324312
325- # TODO: RUSTPYTHON
326- @unittest .expectedFailure
327313 def test_module_in_package (self ):
328314 with support .temp_dir () as script_dir :
329315 pkg_dir = os .path .join (script_dir , 'test_pkg' )
@@ -334,17 +320,13 @@ def test_module_in_package(self):
334320 importlib .machinery .SourceFileLoader ,
335321 cwd = script_dir )
336322
337- # TODO: RUSTPYTHON
338- @unittest .expectedFailure
339323 def test_module_in_package_in_zipfile (self ):
340324 with support .temp_dir () as script_dir :
341325 zip_name , run_name = _make_test_zip_pkg (script_dir , 'test_zip' , 'test_pkg' , 'script' )
342326 self ._check_script (["-m" , "test_pkg.script" ], run_name , run_name ,
343327 script_dir , 'test_pkg' , zipimport .zipimporter ,
344328 PYTHONPATH = zip_name , cwd = script_dir )
345329
346- # TODO: RUSTPYTHON
347- @unittest .expectedFailure
348330 def test_module_in_subpackage_in_zipfile (self ):
349331 with support .temp_dir () as script_dir :
350332 zip_name , run_name = _make_test_zip_pkg (script_dir , 'test_zip' , 'test_pkg' , 'script' , depth = 2 )
@@ -353,8 +335,6 @@ def test_module_in_subpackage_in_zipfile(self):
353335 zipimport .zipimporter ,
354336 PYTHONPATH = zip_name , cwd = script_dir )
355337
356- # TODO: RUSTPYTHON
357- @unittest .expectedFailure
358338 def test_package (self ):
359339 with support .temp_dir () as script_dir :
360340 pkg_dir = os .path .join (script_dir , 'test_pkg' )
@@ -365,8 +345,6 @@ def test_package(self):
365345 importlib .machinery .SourceFileLoader ,
366346 cwd = script_dir )
367347
368- # TODO: RUSTPYTHON
369- @unittest .expectedFailure
370348 def test_package_compiled (self ):
371349 with support .temp_dir () as script_dir :
372350 pkg_dir = os .path .join (script_dir , 'test_pkg' )
@@ -435,8 +413,6 @@ def test_issue8202_dash_c_file_ignored(self):
435413 expected = "sys.path[0]==%r" % ''
436414 self .assertIn (expected .encode ('utf-8' ), out )
437415
438- # TODO: RUSTPYTHON
439- @unittest .expectedFailure
440416 def test_issue8202_dash_m_file_ignored (self ):
441417 # Make sure a "-m" file in the current directory
442418 # does not alter the value of sys.path[0]
@@ -717,8 +693,6 @@ def test_consistent_sys_path_for_direct_execution(self):
717693 out_by_dir_isolated = kill_python (p ).decode ().splitlines ()
718694 self .assertEqual (out_by_dir_isolated , out_by_dir , out_by_name )
719695
720- # TODO: RUSTPYTHON
721- @unittest .expectedFailure
722696 def test_consistent_sys_path_for_module_execution (self ):
723697 # This test case ensures that the following both give the same
724698 # sys.path configuration:
0 commit comments