From 57160d72047c51f7bbe5fe4dc168f8b2f508b174 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Wed, 29 Dec 2010 02:04:28 +0000 Subject: [PATCH] Fix #9333 on Windows XP, where os.symlink is not a possibility. --- Lib/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/support.py b/Lib/test/support.py index 142a87ea4eb..fb15d64fe41 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