summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-02-03 22:11:54 +0000
committerBrett Cannon <bcannon@gmail.com>2010-02-03 22:11:54 +0000
commitb837add2b02d3a5b46b4e3025da21968d8fdef98 (patch)
treece6103eb69a647283b0701784ff772355d06e852 /Lib/test
parentd80eabde266eff9eef63fe04393b4acddb357d38 (diff)
downloadcpython-b837add2b02d3a5b46b4e3025da21968d8fdef98.tar.gz
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index beaa170ad3..f96bad85a7 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -493,7 +493,7 @@ class CleanImport(object):
Use like this:
with CleanImport("foo"):
- __import__("foo") # new reference
+ importlib.import_modulefoo") # new reference
"""
def __init__(self, *module_names):