Run it with e.g.
sudo -E time env PYTHONPATH=src python -m profiling.sampling test/test_unit.py 1 1
Profiler coordinator error: Script file not found: /code/jgol/peer/test/test_unit.py
> sudo -E time env PYTHONPATH=src python test/test_unit.py 1 1
Traceback (most recent call last):
File "/code/jgol/peer/test/test_unit.py", line 16, in <module>
with open("/tmp/foo") as e:
~~~~^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/foo'
Bug report
Bug description:
Run it with e.g.
Prints:
While the actual error is:
CPython versions tested on:
3.15
Operating systems tested on:
macOS
Linked PRs
profiling.samplinghandling of error raised by target #140745