diff options
author | Brett Cannon <brett@python.org> | 2013-06-15 18:39:21 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-15 18:39:21 -0400 |
commit | ef888024d86eccb29b10d55066fa33c3aa54a586 (patch) | |
tree | 4c0c1bc6f81312987817d9a3d8358d4d16f9f330 /Lib/test/test_importlib/util.py | |
parent | 53e600c24a9a7159d5396432e1228b3dbd80eb19 (diff) | |
download | cpython-git-ef888024d86eccb29b10d55066fa33c3aa54a586.tar.gz |
Issue #17177: stop using imp in test_importlib
Diffstat (limited to 'Lib/test/test_importlib/util.py')
-rw-r--r-- | Lib/test/test_importlib/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/util.py b/Lib/test/test_importlib/util.py index ef32f7d690..f97ca72263 100644 --- a/Lib/test/test_importlib/util.py +++ b/Lib/test/test_importlib/util.py @@ -1,9 +1,9 @@ from contextlib import contextmanager -import imp import os.path from test import support import unittest import sys +import types CASE_INSENSITIVE_FS = True @@ -98,7 +98,7 @@ class mock_modules: package = name.rsplit('.', 1)[0] else: package = import_name - module = imp.new_module(import_name) + module = types.ModuleType(import_name) module.__loader__ = self module.__file__ = '<mock __file__>' module.__package__ = package |