diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index a38273c50a8..61fea789341 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -466,6 +466,7 @@ class PathsTests(unittest.TestCase): unc += path[2:] sys.path.insert(0, unc) try: + os.listdir(unc) try: mod = __import__("test_unc_path") except ImportError as e: