summaryrefslogtreecommitdiffstats
path: root/Lib/test/support/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support/__init__.py')
-rw-r--r--Lib/test/support/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 865fb97..c7bee8b 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1442,9 +1442,6 @@ class PythonSymlink:
self._platform_specific()
- def _platform_specific(self):
- pass
-
if sys.platform == "win32":
def _platform_specific(self):
import glob
@@ -1472,6 +1469,9 @@ class PythonSymlink:
self._env["PYTHONHOME"] = os.path.dirname(self.real)
if sysconfig.is_python_build(True):
self._env["PYTHONPATH"] = STDLIB_DIR
+ else:
+ def _platform_specific(self):
+ pass
def __enter__(self):
os.symlink(self.real, self.link)