Skip to content

Commit 4d0ff20

Browse files
committed
Remove markers from succesful zipimport tests
1 parent 6e20ec7 commit 4d0ff20

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Lib/test/test_zipimport.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ def testBadMagic(self):
230230
TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
231231
self.doTest(".py", files, TESTMOD)
232232

233-
# TODO: RUSTPYTHON, zipimport.ZipImportError: can't find module 'ziptestmodule'
234-
@unittest.expectedFailure
235233
def testBadMagic2(self):
236234
# make pyc magic word invalid, causing an ImportError
237235
badmagic_pyc = bytearray(test_pyc)
@@ -438,8 +436,6 @@ def testNamespacePackage(self):
438436
mod = importlib.import_module('.'.join((subpkg, TESTMOD + '3')))
439437
self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
440438

441-
# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'find_spec'
442-
@unittest.expectedFailure
443439
def testZipImporterMethods(self):
444440
packdir = TESTPACK + os.sep
445441
packdir2 = packdir + TESTPACK2 + os.sep
@@ -513,8 +509,6 @@ def testZipImporterMethods(self):
513509
self.assertEqual(zi2.archive, TEMP_ZIP)
514510
self.assertEqual(zi2.prefix, TESTPACK + os.sep)
515511

516-
# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'invalidate_caches'
517-
@unittest.expectedFailure
518512
def testInvalidateCaches(self):
519513
packdir = TESTPACK + os.sep
520514
packdir2 = packdir + TESTPACK2 + os.sep
@@ -557,8 +551,6 @@ def testInvalidateCaches(self):
557551
self.assertIsNone(zipimport._zip_directory_cache.get(zi.archive))
558552
self.assertIsNone(zi.find_spec("name_does_not_matter"))
559553

560-
# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'find_spec'
561-
@unittest.expectedFailure
562554
def testZipImporterMethodsInSubDirectory(self):
563555
packdir = TESTPACK + os.sep
564556
packdir2 = packdir + TESTPACK2 + os.sep
@@ -736,8 +728,6 @@ def testTraceback(self):
736728
files = {TESTMOD + ".py": (NOW, raise_src)}
737729
self.doTest(None, files, TESTMOD, call=self.doTraceback)
738730

739-
# TODO: RUSTPYTHON
740-
@unittest.expectedFailure
741731
@unittest.skipIf(os_helper.TESTFN_UNENCODABLE is None,
742732
"need an unencodable filename")
743733
def testUnencodable(self):

0 commit comments

Comments
 (0)