summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-18 21:19:31 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-18 21:19:31 (GMT)
commit1fff878c4587069e5c2976e157f4981599b50376 (patch)
tree9100bef3af05528ee1dc51e8aec6c3a19f1c8f9f /Lib/test/test_os.py
parenta5e616510e57a5269d53a9cea1d98ea095879c58 (diff)
downloadcpython-1fff878c4587069e5c2976e157f4981599b50376.zip
cpython-1fff878c4587069e5c2976e157f4981599b50376.tar.gz
cpython-1fff878c4587069e5c2976e157f4981599b50376.tar.bz2
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).
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
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: