[Python-checkins] r65780 - python/trunk/Lib/test/test_os.py

antoine.pitrou python-checkins at python.org
Sun Aug 17 22:15:07 CEST 2008


Author: antoine.pitrou
Date: Sun Aug 17 22:15:07 2008
New Revision: 65780

Log:
#3580: fix a failure in test_os



Modified:
   python/trunk/Lib/test/test_os.py

Modified: python/trunk/Lib/test/test_os.py
==============================================================================
--- python/trunk/Lib/test/test_os.py	(original)
+++ python/trunk/Lib/test/test_os.py	Sun Aug 17 22:15:07 2008
@@ -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")
 


More information about the Python-checkins mailing list