#3580: fix a failure in test_os

This commit is contained in:
Antoine Pitrou 2008-08-17 20:15:07 +00:00
parent 7dd854725b
commit 954ea64753
1 changed files with 1 additions and 1 deletions

View File

@ -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")