Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove markers from succesful zipimport tests
  • Loading branch information
youknowone committed Aug 17, 2022
commit 03ae0695b069c6333ce8d42454d59d0a18c0cf59
10 changes: 0 additions & 10 deletions Lib/test/test_zipimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ def testBadMagic(self):
TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
self.doTest(".py", files, TESTMOD)

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

# TODO: RUSTPYTHON, AttributeError: 'zipimporter' object has no attribute 'find_spec'
@unittest.expectedFailure
def testZipImporterMethods(self):
packdir = TESTPACK + os.sep
packdir2 = packdir + TESTPACK2 + os.sep
Expand Down Expand Up @@ -513,8 +509,6 @@ def testZipImporterMethods(self):
self.assertEqual(zi2.archive, TEMP_ZIP)
self.assertEqual(zi2.prefix, TESTPACK + os.sep)

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

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

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skipIf(os_helper.TESTFN_UNENCODABLE is None,
"need an unencodable filename")
def testUnencodable(self):
Expand Down