summaryrefslogtreecommitdiffstats
path: root/Lib/test/support/__init__.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-03-10 16:20:11 (GMT)
committerGitHub <noreply@github.com>2022-03-10 16:20:11 (GMT)
commit6c83c8e6b56b57a8a794e7b6c07837be4ce3bb97 (patch)
treebcd064ca27a9256c4d14aeccbac5bad0cf802c4d /Lib/test/support/__init__.py
parentf537b2a4fb86445ee3bd6ca7f10bc9d3a9f37da5 (diff)
downloadcpython-6c83c8e6b56b57a8a794e7b6c07837be4ce3bb97.zip
cpython-6c83c8e6b56b57a8a794e7b6c07837be4ce3bb97.tar.gz
cpython-6c83c8e6b56b57a8a794e7b6c07837be4ce3bb97.tar.bz2
bpo-46198: rename duplicate tests and remove unused code (GH-30297)
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)