diff --git a/Lib/test/support.py b/Lib/test/support.py index 8115020da07..130891458c1 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -477,7 +477,7 @@ class CleanImport(object): Use like this: with CleanImport("foo"): - __import__("foo") # new reference + importlib.import_module("foo") # new reference """ def __init__(self, *module_names):