diff options
author | Barry Warsaw <barry@python.org> | 2005-04-20 19:41:36 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2005-04-20 19:41:36 (GMT) |
commit | b180c06a54a9eb0012f8102e993b9c3e8f1d7f21 (patch) | |
tree | 661a16bb6215f6dfe843d05dae351f75968e7120 /Lib/test/test_csv.py | |
parent | e890682e521ad90eac91196d151b796edf00c3fa (diff) | |
download | cpython-b180c06a54a9eb0012f8102e993b9c3e8f1d7f21.zip cpython-b180c06a54a9eb0012f8102e993b9c3e8f1d7f21.tar.gz cpython-b180c06a54a9eb0012f8102e993b9c3e8f1d7f21.tar.bz2 |
Fix tests dependent on the exception raised by non-settable descriptors.
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r-- | Lib/test/test_csv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py index 2347be9..f1f183f 100644 --- a/Lib/test/test_csv.py +++ b/Lib/test/test_csv.py @@ -55,8 +55,9 @@ class Test_Csv(unittest.TestCase): # Try deleting or changing attributes (they are read-only) self.assertRaises(TypeError, delattr, obj.dialect, 'delimiter') self.assertRaises(TypeError, setattr, obj.dialect, 'delimiter', ':') - self.assertRaises(TypeError, delattr, obj.dialect, 'quoting') - self.assertRaises(TypeError, setattr, obj.dialect, 'quoting', None) + self.assertRaises(AttributeError, delattr, obj.dialect, 'quoting') + self.assertRaises(AttributeError, setattr, obj.dialect, + 'quoting', None) def test_reader_attrs(self): self._test_default_attrs(csv.reader, []) |