| py = '3.11', exposure = 2
|
|
|
| @requires_sudo
|
| @pytest.mark.parametrize("exposure", [1, 2])
|
| @allpythons()
|
| def test_attach_exposure(py, exposure):
|
| with run_python(py, target("sleepy.py"), "3") as p:
|
| result = austin("-i", "1ms", "-x", str(exposure), "-p", str(p.pid))
|
| > assert result.returncode == 0
|
| E assert 32 == 0
|
| E + where 32 = CompletedProcess(args=['src/austin', '-i', '1ms', '-x', '2', '-p', '3424'], returncode=32, stdout='', stderr="\x1b[1m _ _ \x1b[0m \n\x1b[1m __ _ _ _ __| |_(_)_ _ \x1b[0m\n\x1b[1m/ _` | || (_-< _| | ' \\ \x1b[0m\n\x1b[1m\\__,_|\\_,_/__/\\__|_|_||_|\x1b[0m \x1b[36;1m3.7.0\x1b[0m [gcc 13.3.0]\n\n👾 It looks like you are trying to profile a process that is not a Python\nprocess. Make sure that you are targeting the right application. If the Python\nprocess is actually a child of the target process then use the -C option to\ndiscover it automatically.\n").returncode
|
|
|
| test/functional/test_attach.py:84: AssertionError
|