diff options
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 93e530c..a7fc1da 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -143,7 +143,7 @@ class StatAttributeTests(unittest.TestCase): try: result.st_mode = 1 self.fail("No exception thrown") - except TypeError: + except AttributeError: pass try: @@ -201,7 +201,7 @@ class StatAttributeTests(unittest.TestCase): try: result.f_bfree = 1 self.fail("No exception thrown") - except TypeError: + except AttributeError: pass try: |