commit | 1fff878c4587069e5c2976e157f4981599b50376 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Oct 18 21:19:31 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Oct 18 21:19:31 2001 +0000 |
tree | 9100bef3af05528ee1dc51e8aec6c3a19f1c8f9f | |
parent | a5e616510e57a5269d53a9cea1d98ea095879c58 [diff] |
The assignment to result.st_rdev can raise AttributeError as well as TypeError (on systems where it's not defined at all, it raises AttributeError; when it's defined, assignment to it raises TypeError).
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index bec3b90..6adf109 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py
@@ -111,7 +111,7 @@ try: result.st_rdev = 1 self.fail("No exception thrown") - except TypeError: + except (AttributeError, TypeError): pass try: