From 1fff878c4587069e5c2976e157f4981599b50376 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 18 Oct 2001 21:19:31 +0000 Subject: 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). --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ class StatAttributeTests(unittest.TestCase): try: result.st_rdev = 1 self.fail("No exception thrown") - except TypeError: + except (AttributeError, TypeError): pass try: -- cgit v0.12