From 16633fa497caec98c5aa86afb99fb4e9c27f3b62 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Fri, 9 Jul 2010 13:54:27 +0000 Subject: Fix the breakage of Lib/tarfile.py on non-Windows platforms due to using WindowsError in a try/except. Only add WindowsError to the list of exceptions to catch when we are actually running on Windows. Additionally, add a call that was left out in test_posixpath. Thanks Amaury, Antoine, and Jason. --- Lib/test/test_posixpath.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_posixpath.py') diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 34b9689dc9..fd71ac9a50 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -208,6 +208,7 @@ class PosixPathTest(unittest.TestCase): def test_samestat_on_links(self): test_fn1 = support.TESTFN + "1" test_fn2 = support.TESTFN + "2" + self._create_file(test_fn1) test_fns = (test_fn1, test_fn2) os.symlink(*test_fns) stats = map(os.stat, test_fns) -- cgit v1.2.1