| self = <austin.format.mojo.MojoStreamReader object at 0x7f9281108a60>
|
|
|
| def parse_event(self) -> t.Optional[MojoEvent]:
|
| """Parse a single event."""
|
| try:
|
| (event_id,) = self.read()
|
| except ValueError:
|
| return None
|
|
|
| try:
|
| > event = t.cast(dict, self.__handlers__)[event_id](self)
|
| E KeyError: 13
|
|
|
| .venv/lib/python3.10/site-packages/austin/format/mojo.py:622: KeyError
|
|
|
| The above exception was the direct cause of the following exception:
|
|
|
| py = '3.11'
|
|
|
| @allpythons()
|
| def test_accuracy_fast_recursive(py):
|
| > result = austin("-i", "1ms", "-P", *python(py), target("recursive.py"))
|
|
|
| test/integrity/test_accuracy.py:32:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
| test/utils.py:322: in __call__
|
| return self.prepare_result(result, expect_fail, convert)
|
| test/utils.py:335: in prepare_result
|
| raise e
|
| test/utils.py:332: in prepare_result
|
| result.samples, result.metadata = parse_mojo(result.stdout)
|
| test/utils.py:505: in parse_mojo
|
| samples = [_ for _ in mojo if isinstance(_, AustinSample)]
|
| test/utils.py:505: in <listcomp>
|
| samples = [_ for _ in mojo if isinstance(_, AustinSample)]
|
| .venv/lib/python3.10/site-packages/austin/format/mojo.py:664: in __iter__
|
| for e in self.parse():
|
| .venv/lib/python3.10/site-packages/austin/format/mojo.py:653: in parse
|
| if (e := self.parse_event()) is None:
|
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
| self = <austin.format.mojo.MojoStreamReader object at 0x7f9281108a60>
|
|
|
| def parse_event(self) -> t.Optional[MojoEvent]:
|
| """Parse a single event."""
|
| try:
|
| (event_id,) = self.read()
|
| except ValueError:
|
| return None
|
|
|
| try:
|
| event = t.cast(dict, self.__handlers__)[event_id](self)
|
| object.__setattr__(event, "raw", bytes(self._last_bytes))
|
| self._last_bytes.clear()
|
| return event
|
| except KeyError as exc:
|
| > raise ValueError(
|
| f"Unhandled event: {event_id} (offset: {self._offset}, last read: {self._last_read})"
|
| ) from exc
|
| E ValueError: Unhandled event: 13 (offset: 258, last read: 1)
|
|
|
| .venv/lib/python3.10/site-packages/austin/format/mojo.py:627: ValueError
|