mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
#6844 followup: the warning when setting Exception.message was removed, do not test for it.
This commit is contained in:
parent
e9741f3ed8
commit
ebf3adc4fe
1 changed files with 0 additions and 7 deletions
|
@ -143,13 +143,6 @@ class ExceptionClassTests(unittest.TestCase):
|
||||||
else:
|
else:
|
||||||
self.fail("BaseException.message not deprecated")
|
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):
|
class UsageTests(unittest.TestCase):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue