mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix #9333. The symlink function is always available now, raising OSError
when the user doesn't hold the symbolic link privilege rather than hiding it.
This commit is contained in:
parent
baab9d0bf6
commit
3b4499c5c7
11 changed files with 55 additions and 46 deletions
|
@ -12,7 +12,7 @@ import shutil
|
|||
from copy import copy, deepcopy
|
||||
|
||||
from test.support import (run_unittest, TESTFN, unlink, get_attribute,
|
||||
captured_stdout)
|
||||
captured_stdout, skip_unless_symlink)
|
||||
|
||||
import sysconfig
|
||||
from sysconfig import (get_paths, get_platform, get_config_vars,
|
||||
|
@ -245,8 +245,7 @@ class TestSysConfig(unittest.TestCase):
|
|||
'posix_home', 'posix_prefix', 'posix_user')
|
||||
self.assertEqual(get_scheme_names(), wanted)
|
||||
|
||||
@unittest.skipUnless(hasattr(os, "symlink"),
|
||||
"Missing symlink implementation")
|
||||
@skip_unless_symlink
|
||||
def test_symlink(self):
|
||||
# On Windows, the EXE needs to know where pythonXY.dll is at so we have
|
||||
# to add the directory to the path.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue