Commit 954ea647 authored by Antoine Pitrou's avatar Antoine Pitrou

#3580: fix a failure in test_os

parent 7dd85472
...@@ -313,7 +313,7 @@ class StatAttributeTests(unittest.TestCase): ...@@ -313,7 +313,7 @@ class StatAttributeTests(unittest.TestCase):
try: try:
os.stat(r"c:\pagefile.sys") os.stat(r"c:\pagefile.sys")
except WindowsError, e: except WindowsError, e:
if e == 2: # file does not exist; cannot run test if e.errno == 2: # file does not exist; cannot run test
return return
self.fail("Could not stat pagefile.sys") self.fail("Could not stat pagefile.sys")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment