From 501c555c547d32e2564e06c142a40cfb032e2f6f Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Wed, 7 Apr 2021 16:32:38 -0500 Subject: [PATCH] Unskip tests --- Lib/test/test_imp.py | 6 ------ Lib/test/test_importlib/import_/test_caching.py | 6 ------ Lib/test/test_importlib/import_/test_meta_path.py | 4 ---- Lib/test/test_posix.py | 2 -- 4 files changed, 18 deletions(-) diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 2fd613fea..ead981043 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -103,8 +103,6 @@ class ImportTests(unittest.TestCase): self.assertEqual(fp.readline(), '"""Tokenization help for Python programs.\n') - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_issue3594(self): temp_mod_name = 'test_imp_helper' sys.path.insert(0, '.') @@ -119,8 +117,6 @@ class ImportTests(unittest.TestCase): support.unlink(temp_mod_name + '.py') support.unlink(temp_mod_name + '.pyc') - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_issue5604(self): # Test cannot cover imp.load_compiled function. # Martin von Loewis note what shared library cannot have non-ascii @@ -215,8 +211,6 @@ class ImportTests(unittest.TestCase): self.assertRaises(SyntaxError, imp.find_module, "badsyntax_pep3120", [path]) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_load_from_source(self): # Verify that the imp module can correctly load and find .py files # XXX (ncoghlan): It would be nice to use support.CleanImport diff --git a/Lib/test/test_importlib/import_/test_caching.py b/Lib/test/test_importlib/import_/test_caching.py index 21bdecc6a..8079add5b 100644 --- a/Lib/test/test_importlib/import_/test_caching.py +++ b/Lib/test/test_importlib/import_/test_caching.py @@ -61,8 +61,6 @@ class ImportlibUseCache(UseCache, unittest.TestCase): # __import__ inconsistent between loaders and built-in import when it comes # to when to use the module in sys.modules and when not to. - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_using_cache_after_loader(self): # [from cache on return] with self.create_mock('module') as mock: @@ -71,8 +69,6 @@ class ImportlibUseCache(UseCache, unittest.TestCase): self.assertEqual(id(module), id(sys.modules['module'])) # See test_using_cache_after_loader() for reasoning. - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_using_cache_for_assigning_to_attribute(self): # [from cache to attribute] with self.create_mock('pkg.__init__', 'pkg.module') as importer: @@ -83,8 +79,6 @@ class ImportlibUseCache(UseCache, unittest.TestCase): id(sys.modules['pkg.module'])) # See test_using_cache_after_loader() for reasoning. - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_using_cache_for_fromlist(self): # [from cache for fromlist] with self.create_mock('pkg.__init__', 'pkg.module') as importer: diff --git a/Lib/test/test_importlib/import_/test_meta_path.py b/Lib/test/test_importlib/import_/test_meta_path.py index ad7d2588a..1ee79f3bc 100644 --- a/Lib/test/test_importlib/import_/test_meta_path.py +++ b/Lib/test/test_importlib/import_/test_meta_path.py @@ -67,8 +67,6 @@ class CallSignature: return fxn(*args, **kwargs) return log, wrapper - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_no_path(self): # [no path] mod_name = 'top_level' @@ -84,8 +82,6 @@ class CallSignature: self.assertEqual(args[0], mod_name) self.assertIsNone(args[1]) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_with_path(self): # [path set] pkg_name = 'pkg' diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index e4a11b8d1..2782dd6ce 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1769,8 +1769,6 @@ class _PosixSpawnMixin: support.wait_process(pid, exitcode=-signal.SIGUSR1) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_setsigdef_wrong_type(self): with self.assertRaises(TypeError): self.spawn_func(sys.executable,