This hangs: ```./pants test ./test_queue.py``` Thi...
# development
m
This hangs:
Copy code
./pants test ./test_queue.py
This passes:
Copy code
./pants test --debug ./test_queue.py
w
--debug
runs the process interactively, such that it will actually be able to read
stdio
, and will have a
TTY
whereas
--no-debug
has empty stdio
if the test is attempting to interact with the terminal, that might cause it to hang when run in the background.
1
to confirm, i’d recommend attaching to the test process with py-spy, with something like:
Copy code
sudo py-spy dump -p $testpid
m
Forgot to mention there’s also multiprocessing involved
w
i don’t think that that could cause this, but perhaps? as mentioned: highly recommend
py-spy
, as it will tell you where it is hung.