diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2018-04-25 02:22:28 (GMT) |
|---|---|---|
| committer | Nick Coghlan <ncoghlan@gmail.com> | 2018-04-25 02:22:28 (GMT) |
| commit | 0977091dca59709864b14cfc129388f1f0de7bf7 (patch) | |
| tree | d6a4f1fd2c977ea619abb77b2e12144ee7dd14e2 /Lib/test/test_sys.py | |
| parent | 650ba4ffd1dcd4e5eb246d7c176e204eb90c7a86 (diff) | |
| download | cpython-0977091dca59709864b14cfc129388f1f0de7bf7.zip cpython-0977091dca59709864b14cfc129388f1f0de7bf7.tar.gz cpython-0977091dca59709864b14cfc129388f1f0de7bf7.tar.bz2 | |
bpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)
External importers were being added in both phases of the import
system initialisation.
They're only supposed to be added in the second phase, after the
import machinery has been appropriately configured.
Diffstat (limited to 'Lib/test/test_sys.py')
| -rw-r--r-- | Lib/test/test_sys.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 6933b41..336ae44 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -852,6 +852,9 @@ class SysModuleTest(unittest.TestCase): check(-1<<1000, [traceback[-1]]) check(None, traceback) + def test_no_duplicates_in_meta_path(self): + self.assertEqual(len(sys.meta_path), len(set(sys.meta_path))) + @test.support.cpython_only class SizeofTest(unittest.TestCase): |
