New paste Repaste Download
[gw1] darwin -- Python 3.10.11 /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
self = <austin.format.mojo.MojoFile object at 0x1065dd450>
    def parse_event(self) -> t.Generator[t.Optional[MojoEvent], None, None]:
        """Parse a single event."""
        try:
            (event_id,) = self.read(1)
        except ValueError:
            yield None
            return
    
        try:
>           for event in t.cast(dict, self.__handlers__)[event_id](self):
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/austin/format/mojo.py:492:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/austin/format/mojo.py:383: in parse_frame
    scope = MojoStringReference(self._lookup_string())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <austin.format.mojo.MojoFile object at 0x1065dd450>
    def _lookup_string(self) -> MojoString:
        n = self.read_int()
        if n == 1:
            return UNKNOWN
    
>       return self._string_map[self.ref(n)]
E       KeyError: (3286, 39780352)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/austin/format/mojo.py:376: KeyError
The above exception was the direct cause of the following exception:
py = '3.13'
tmp_path = PosixPath('/private/var/folders/tp/bfmjfn9s0hd59bm9z80j3mgm0000gn/T/pytest-of-root/pytest-0/popen-gw1/test_fork_output_True_3_13_0')
mojo = True
    @allpythons()
    @mojo
    def test_fork_output(py, tmp_path: Path, mojo):
        datafile = tmp_path / "test_fork_output.austin"
    
        result = austin(
            "-i", "1ms", "-o", str(datafile), *python(py), target("target34.py"), mojo=mojo
        )
        assert result.returncode == 0, result.stderr or result.stdout
    
        assert "Unwanted" in result.stdout
    
>       data = demojo(datafile.read_bytes()) if mojo else datafile.read_text()
test/functional/test_fork.py:151:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/utils.py:412: in demojo
    for e in MojoFile(BytesIO(data)).parse():
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/austin/format/mojo.py:507: in parse
    for e in self.parse_event():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <austin.format.mojo.MojoFile object at 0x1065dd450>
    def parse_event(self) -> t.Generator[t.Optional[MojoEvent], None, None]:
        """Parse a single event."""
        try:
            (event_id,) = self.read(1)
        except ValueError:
            yield None
            return
    
        try:
            for event in t.cast(dict, self.__handlers__)[event_id](self):
                object.__setattr__(event, "raw", bytes(self._last_bytes))
                self._last_bytes.clear()
                yield 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: 3 (offset: 154, last read: 1)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/austin/format/mojo.py:497: ValueError
Filename: None. Size: 3kb. View raw, , hex, or download this file.

This paste expires on 2025-06-06 22:17:34.311646. Pasted through deprecated-web.