]> granicus.if.org Git - python/commitdiff
#6844 followup: the warning when setting Exception.message was removed, do not test...
authorGeorg Brandl <georg@python.org>
Thu, 17 Sep 2009 11:48:31 +0000 (11:48 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 17 Sep 2009 11:48:31 +0000 (11:48 +0000)
Lib/test/test_pep352.py

index d2429ebcfbdaea04e97e500fcb34aa3addfb2d08..c6d3a8dcc16cb90c8b98603439255ee37d1ca59f 100644 (file)
@@ -143,13 +143,6 @@ class ExceptionClassTests(unittest.TestCase):
             else:
                 self.fail("BaseException.message not deprecated")
 
-            exc = BaseException()
-            try:
-                exc.message = ''
-            except DeprecationWarning:
-                pass
-            else:
-                self.fail("BaseException.message assignment not deprecated")
 
 class UsageTests(unittest.TestCase):