diff options
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_os.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index ca23dbac85..3dffcb2dea 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -318,7 +318,7 @@ class StatAttributeTests(unittest.TestCase):              try:                  os.stat(r"c:\pagefile.sys")              except WindowsError as 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") | 
