From: Brian Curtin Date: Wed, 29 Dec 2010 02:04:28 +0000 (+0000) Subject: Fix #9333 on Windows XP, where os.symlink is not a possibility. X-Git-Tag: v3.2rc1~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57160d72047c51f7bbe5fe4dc168f8b2f508b174;p=thirdparty%2FPython%2Fcpython.git Fix #9333 on Windows XP, where os.symlink is not a possibility. --- diff --git a/Lib/test/support.py b/Lib/test/support.py index 142a87ea4eb6..fb15d64fe410 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -1422,7 +1422,7 @@ def can_symlink(): try: os.symlink(TESTFN, TESTFN + "can_symlink") can = True - except OSError: + except (OSError, NotImplementedError): can = False _can_symlink = can return can