summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-07-09 13:54:27 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-07-09 13:54:27 (GMT)
commit16633fa497caec98c5aa86afb99fb4e9c27f3b62 (patch)
treeb99e6086d236921cbc1928cd9f0f03312e4f435c /Lib/test/test_posixpath.py
parent4b83af957629197050f61988183f56564892ab94 (diff)
downloadcpython-16633fa497caec98c5aa86afb99fb4e9c27f3b62.zip
cpython-16633fa497caec98c5aa86afb99fb4e9c27f3b62.tar.gz
cpython-16633fa497caec98c5aa86afb99fb4e9c27f3b62.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r--Lib/test/test_posixpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 34b9689..fd71ac9 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)