Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Closed
Description
Crash report
What happened?
importunittestimportsysmon=sys.monitoringdefadd_line(code:"types.CodeType",lineno:int,)->None:returnmon.DISABLEdefenable():mon.use_tool_id(mon.COVERAGE_ID,"regrtest coverage")mon.register_callback(mon.COVERAGE_ID,mon.events.LINE,add_line)mon.set_events(mon.COVERAGE_ID,mon.events.LINE)enable()classCLanguage:def__init__(self,filename=None):self.filename=filenamedef__init__(self,clang,filename='file',limited_capi=False):self.limited_capi=limited_capidefparse(self,text):norm=dedent(text).strip()def_make_clinic(*,filename=bytes(range(256)),limited_capi=' '):clang=CLanguage(filename)returncclassClinicWholeFileTest(unittest.TestCase):defexpect_failure(self,raw,errmsg,*,filename=None,lineno=None):self.clinic=_make_clinic(filename='test.c')deftest_directive_output_cant_pop(self):raw='\n /*[clinic input]\n output pop\n [clinic start generated code]*/\n 'err="Can't 'output pop', stack is empty"self.expect_failure(raw,err)if__name__=="__main__":unittest.main()
python: ../Python/generated_cases.c.h:10059: PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion `STACK_LEVEL() == 0' failedconfig:--with-pydebug --enable-experimental-jit=yes --with-address-sanitizer
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response