commit | 954ea6475364f4ffb68ecc66ff0d228f086416b7 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Aug 17 20:15:07 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Aug 17 20:15:07 2008 +0000 |
tree | 28c27eaca9f0f526be80e4741f6d6b326be52e71 | |
parent | 7dd854725b0ecdd47b3818fe12ce2a3f9948f3ce [diff] [blame] |
#3580: fix a failure in test_os
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 @@ 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")