From 3b4499c5c7718a2aca8558b857dfe02cc4a80cd9 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Tue, 28 Dec 2010 14:31:47 +0000 Subject: 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. --- Lib/test/test_httpservers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_httpservers.py') diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 19d3d17638..e42038aadc 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: -- cgit v1.2.1