Skip to content

Commit

Permalink
Debug pytest not showing traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Kamina committed Aug 29, 2024
1 parent 53b1555 commit 9af6f03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Test with pytest
run: |
python -c 'from deluge._libtorrent import lt; print(lt.__version__)';
$DEBUG_PREFIX pytest -v --full-trace --showlocals -m "not (todo or security)" deluge 2>&1
python -X dev -m pytest -v --full-trace --showlocals -m "not (todo or security)" -p no:faulthandler deluge 2>&1
- uses: actions/upload-artifact@v4
# capture all crashes as build artifacts
Expand Down Expand Up @@ -126,4 +126,4 @@ jobs:
run: |
python -c 'import libtorrent as lt; print(lt.__version__)';
python -c 'from twisted.internet import gireactor; reactor = gireactor.install()'
python -v -c -X dev "import pytest; retcode = pytest.main(['--full-trace','--showlocals','-vvv','-ra','-m \'not (todo or security)\'','deluge']); print(f'pytest returned: {retcode}');" 2>&1
python -X dev -m pytest -vvv -ra --full-trace --showlocals -m "not (todo or security)" -p no:faulthandler .
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
libtorrent<2.0.9
pytest
pytest<=8.2.2
pytest-twisted
pytest-cov
mock
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def finalize_options(self):

def run_tests(self):
import pytest

print(f"pytest args: {self.test_args}")
errcode = pytest.main(self.test_args)
sys.exit(errcode)

Expand Down

0 comments on commit 9af6f03

Please sign in to comment.