mirror of https://github.com/python/cpython.git
#6844 followup: the warning when setting Exception.message was removed, do not test for it.
This commit is contained in:
parent
e9741f3ed8
commit
ebf3adc4fe
|
@ -143,13 +143,6 @@ def test_message_deprecation(self):
|
||||||
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…
Reference in New Issue