mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-46198: rename duplicate tests and remove unused code (GH-30297)
This commit is contained in:
parent
f537b2a4fb
commit
6c83c8e6b5
10 changed files with 8 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue