diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-12-29 02:04:28 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-12-29 02:04:28 (GMT) |
commit | 57160d72047c51f7bbe5fe4dc168f8b2f508b174 (patch) | |
tree | cb2b876277eee60cddd3f9cc600f854627365502 | |
parent | 80e788a5ddddc2d4a01f25e8021534e4d6239d39 (diff) | |
download | cpython-57160d72047c51f7bbe5fe4dc168f8b2f508b174.zip cpython-57160d72047c51f7bbe5fe4dc168f8b2f508b174.tar.gz cpython-57160d72047c51f7bbe5fe4dc168f8b2f508b174.tar.bz2 |
Fix #9333 on Windows XP, where os.symlink is not a possibility.
-rw-r--r-- | Lib/test/support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 142a87e..fb15d64 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 |