When I set elpy-test-compilation-function to 'pdb, I can't test single unit tests anymore (having point on a test and using C-c C-t. I get the following error (Running all tests of a file works):
Current directory is /home/paethon/git/autonlu/autonlu/tests/short_tests/
========================================================== test session starts ==========================================================
platform linux -- Python 3.9.2, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /home/paethon/git/autonlu
plugins: anyio-2.0.2, cov-2.11.1
collected 0 items
========================================================= no tests ran in 0.01s =========================================================
ERROR: file or directory not found: /home/paethon/git/autonlu/autonlu/tests/short_tests/test_snorkel.py\:\:test_SnorkelLabeler
Debugger exited abnormally with code 4
Having set it to 'compile, it works without a problem:
-*- mode: compilation; default-directory: "~/git/autonlu/autonlu/tests/short_tests/" -*-
Compilation started at Tue Mar 2 13:23:35
py.test --pdb --disable-warnings /home/paethon/git/autonlu/autonlu/tests/short_tests/test_snorkel.py\:\:test_SnorkelLabeler
========================================================== test session starts ==========================================================
platform linux -- Python 3.9.2, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /home/paethon/git/autonlu
plugins: anyio-2.0.2, cov-2.11.1
collected 1 item
Steps to reproduce
Set elpy-test-compilation-function to 'pdb and try to run a test at point.
Summary
When I set
elpy-test-compilation-function
to'pdb
, I can't test single unit tests anymore (having point on a test and usingC-c C-t
. I get the following error (Running all tests of a file works):Having set it to
'compile
, it works without a problem:Steps to reproduce
Set
elpy-test-compilation-function
to'pdb
and try to run a test at point.My configuration
OS
Arch Linux
Result of
(elpy-config)
Elpy configuration in my init.el