mirror of https://github.com/python/cpython
#3580: fix a failure in test_os
This commit is contained in:
parent
7dd854725b
commit
954ea64753
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue