Skip to content

Commit c0928b3

Browse files
committed
Remove markers from succesful zipimport tests
1 parent dc5406b commit c0928b3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Lib/test/test_zipimport.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,6 @@ def testBadMagic(self):
234234
TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
235235
self.doTest(".py", files, TESTMOD)
236236

237-
# TODO: RUSTPYTHON, zipimport.ZipImportError: can't find module 'ziptestmodule'
238-
@unittest.expectedFailure
239237
def testBadMagic2(self):
240238
# make pyc magic word invalid, causing an ImportError
241239
badmagic_pyc = bytearray(test_pyc)
@@ -442,8 +440,6 @@ def testNamespacePackage(self):
442440
mod = importlib.import_module('.'.join((subpkg, TESTMOD + '3')))
443441
self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
444442

445-
# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'find_spec'
446-
@unittest.expectedFailure
447443
def testZipImporterMethods(self):
448444
packdir = TESTPACK + os.sep
449445
packdir2 = packdir + TESTPACK2 + os.sep
@@ -517,8 +513,6 @@ def testZipImporterMethods(self):
517513
self.assertEqual(zi2.archive, TEMP_ZIP)
518514
self.assertEqual(zi2.prefix, TESTPACK + os.sep)
519515

520-
# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'invalidate_caches'
521-
@unittest.expectedFailure
522516
def testInvalidateCaches(self):
523517
packdir = TESTPACK + os.sep
524518
packdir2 = packdir + TESTPACK2 + os.sep
@@ -561,8 +555,6 @@ def testInvalidateCaches(self):
561555
self.assertIsNone(zipimport._zip_directory_cache.get(zi.archive))
562556
self.assertIsNone(zi.find_spec("name_does_not_matter"))
563557

564-
# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'find_spec'
565-
@unittest.expectedFailure
566558
def testZipImporterMethodsInSubDirectory(self):
567559
packdir = TESTPACK + os.sep
568560
packdir2 = packdir + TESTPACK2 + os.sep

0 commit comments

Comments
 (0)