summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-02-03 22:11:54 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-02-03 22:11:54 (GMT)
commit18e4db5ebe8396d06478c0a3fdbf3076e4b747ed (patch)
tree4cf486db30d5c483214fc78ef67afb47f2514f51 /Lib/test
parentc68e9f0d200751692b9f54db337b80a465667fae (diff)
downloadcpython-18e4db5ebe8396d06478c0a3fdbf3076e4b747ed.zip
cpython-18e4db5ebe8396d06478c0a3fdbf3076e4b747ed.tar.gz
cpython-18e4db5ebe8396d06478c0a3fdbf3076e4b747ed.tar.bz2
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 beaa170..f96bad8 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):