summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-28 21:44:53 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-28 21:44:53 (GMT)
commit42dae6a89bd24073ae1b66599180cc94f15ff232 (patch)
tree7df2ee86dc68b54e0b207eaa6862bfc82272e382 /Lib/test/test_os.py
parentd84da1b67a12df114de2f76e0644174f07f2c834 (diff)
downloadcpython-42dae6a89bd24073ae1b66599180cc94f15ff232.zip
cpython-42dae6a89bd24073ae1b66599180cc94f15ff232.tar.gz
cpython-42dae6a89bd24073ae1b66599180cc94f15ff232.tar.bz2
Make readonly members defined in C throw an AttributeError on modification. This brings them into sync with Python-level attributes. Fixes bug #1687163.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py4
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: