This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients CharlesFengY, Mark.Shannon, iritkatriel
Date 2021-02-10.13:05:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
3.9 crashes.
On master, I'm not seeing a crash, just a RecursionError.

>>> import unittest
>>> def f():
...     raise TypeError
>>> class TestAudioop(unittest.TestCase):
...     def test_invalid_adpcm_state(self):
...         self.assertRaises(TypeError, f) 
...         self.test_invalid_adpcm_state()
>>> TestAudioop().test_invalid_adpcm_state()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 4, in test_invalid_adpcm_state
  File "<stdin>", line 4, in test_invalid_adpcm_state
  File "<stdin>", line 4, in test_invalid_adpcm_state
  [Previous line repeated 992 more times]
  File "<stdin>", line 3, in test_invalid_adpcm_state
  File "/home/mark/repos/cpython/Lib/unittest/", line 730, in assertRaises
    context = _AssertRaisesContext(expected_exception, self)
  File "/home/mark/repos/cpython/Lib/unittest/", line 168, in __init__
    _BaseTestCaseContext.__init__(self, test_case)
RecursionError: maximum recursion depth exceeded
Date User Action Args
2021-02-10 13:05:42Mark.Shannonsetrecipients: + Mark.Shannon, iritkatriel, CharlesFengY
2021-02-10 13:05:42Mark.Shannonsetmessageid: <>
2021-02-10 13:05:42Mark.Shannonlinkissue43185 messages
2021-02-10 13:05:42Mark.Shannoncreate