mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
#3580: fix a failure in test_os
This commit is contained in:
parent
7dd854725b
commit
954ea64753
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue