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 CharlesFengY
Recipients CharlesFengY
Date 2021-02-10.09:00:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612947608.83.0.497141724591.issue43185@roundup.psfhosted.org>
In-reply-to
Content
Seeing the following program, in the second assertRaises(), function "test_invalid_adpcm_state()"  is recursively called. Then a fatal Python error shows up and the Python interpreter crashes. 

++++++++++++++++++++++++++++++++++++++
import unittest
import audioop

class TestAudioop(unittest.TestCase):
         pass

def test_invalid_adpcm_state():
         TestAudioop.assertRaises(TypeError, audioop.lin2adpcm, b'\x00', 1, 555)
         TestAudioop.assertRaises(test_invalid_adpcm_state(), audioop.adpcm2lin, b'\x00', 1, (0, (- 1)))

TestAudioop = TestAudioop()
test_invalid_adpcm_state()

+++++++++++++++++++++++++++++++++++++++

System Info: Ubuntu 16.04
Python Version:  Python 3.9.1
History
Date User Action Args
2021-02-10 09:00:08CharlesFengYsetrecipients: + CharlesFengY
2021-02-10 09:00:08CharlesFengYsetmessageid: <1612947608.83.0.497141724591.issue43185@roundup.psfhosted.org>
2021-02-10 09:00:08CharlesFengYlinkissue43185 messages
2021-02-10 09:00:08CharlesFengYcreate