diff Lib/test/test_httpservers.py @ 67183:5aa433a277f9

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.
author Brian Curtin <brian.curtin@gmail.com>
date Tue, 28 Dec 2010 14:31:47 +0000
parents 0b94635ed2f6
children 30c91342b6ae
line wrap: on
line diff
--- a/Lib/test/test_httpservers.py	Tue Dec 28 13:33:43 2010 +0000
+++ b/Lib/test/test_httpservers.py	Tue Dec 28 14:31:47 2010 +0000
@@ -304,7 +304,7 @@
 
         # 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: