Kaydet (Commit) 954ea647 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

#3580: fix a failure in test_os

üst 7dd85472
......@@ -313,7 +313,7 @@ class StatAttributeTests(unittest.TestCase):
try:
os.stat(r"c:\pagefile.sys")
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
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