summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_getopt.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_getopt.py')
-rw-r--r--Lib/test/test_getopt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_getopt.py b/Lib/test/test_getopt.py
index a3a9940..36d1688 100644
--- a/Lib/test/test_getopt.py
+++ b/Lib/test/test_getopt.py
@@ -167,8 +167,8 @@ class GetoptTests(unittest.TestCase):
['a1', 'a2']
"""
- import new
- m = new.module("libreftest", s)
+ import types
+ m = types.ModuleType("libreftest", s)
run_doctest(m, verbose)