summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-17 20:15:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-17 20:15:07 (GMT)
commit954ea6475364f4ffb68ecc66ff0d228f086416b7 (patch)
tree28c27eaca9f0f526be80e4741f6d6b326be52e71
parent7dd854725b0ecdd47b3818fe12ce2a3f9948f3ce (diff)
downloadcpython-954ea6475364f4ffb68ecc66ff0d228f086416b7.zip
cpython-954ea6475364f4ffb68ecc66ff0d228f086416b7.tar.gz
cpython-954ea6475364f4ffb68ecc66ff0d228f086416b7.tar.bz2
#3580: fix a failure in test_os
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 7cfae44..b644bdc 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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")