diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-12-28 14:31:47 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-12-28 14:31:47 (GMT) |
commit | 3b4499c5c7718a2aca8558b857dfe02cc4a80cd9 (patch) | |
tree | e952e750f0913c99ca1d4b021736476baab55408 /Lib/test/test_httpservers.py | |
parent | baab9d0bf6d1627aa292a7639878ae9ba46fc2ca (diff) | |
download | cpython-3b4499c5c7718a2aca8558b857dfe02cc4a80cd9.zip cpython-3b4499c5c7718a2aca8558b857dfe02cc4a80cd9.tar.gz cpython-3b4499c5c7718a2aca8558b857dfe02cc4a80cd9.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r-- | Lib/test/test_httpservers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 19d3d17..e42038a 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -304,7 +304,7 @@ class CGIHTTPServerTestCase(BaseTestCase): # The shebang line should be pure ASCII: use symlink if possible. # See issue #7668. - if hasattr(os, "symlink"): + if support.can_symlink(): self.pythonexe = os.path.join(self.parent_dir, 'python') os.symlink(sys.executable, self.pythonexe) else: |