summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_import/__init__.py')
-rw-r--r--Lib/test/test_import/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index afbc12c..8857fd5 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -19,7 +19,8 @@ import unittest
from unittest import mock
from test.support import os_helper
-from test.support import (is_jython, swap_attr, swap_item, cpython_only)
+from test.support import (
+ STDLIB_DIR, is_jython, swap_attr, swap_item, cpython_only)
from test.support.import_helper import (
forget, make_legacy_pyc, unlink, unload, DirsOnSysPath, CleanImport)
from test.support.os_helper import (
@@ -495,7 +496,7 @@ class ImportTests(unittest.TestCase):
env = None
env = {k.upper(): os.environ[k] for k in os.environ}
- env["PYTHONPATH"] = tmp2 + ";" + os.path.dirname(os.__file__)
+ env["PYTHONPATH"] = tmp2 + ";" + STDLIB_DIR
# Test 1: import with added DLL directory
subprocess.check_call([