Skip to content

Commit

Permalink
test: fix a test on free-threading, use abiflags to get site-packages…
Browse files Browse the repository at this point in the history
… path correct
  • Loading branch information
nedbat committed Aug 3, 2024
1 parent 2b53664 commit 7a27f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/python-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
set -xe
python -VV
python -m site
python -m sysconfig
python -c "import sys; print('GIL:', getattr(sys, '_is_gil_enabled', lambda: True)())"
python -m coverage debug sys
python -m coverage debug pybehave
Expand Down
2 changes: 1 addition & 1 deletion tests/test_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def test_short_stack_full(self) -> None:
else:
py = "pypy" if env.PYPY else "python"
majv, minv = sys.version_info[:2]
pylib = f"lib{s}{py}{majv}.{minv}"
pylib = f"lib{s}{py}{majv}.{minv}{sys.abiflags}"
assert len(re_lines(fr"{s}{pylib}{s}site-packages{s}_pytest", stack_text)) > 3
assert len(re_lines(fr"{s}{pylib}{s}site-packages{s}pluggy", stack_text)) > 3
assert not re_lines(r" 0x[0-9a-fA-F]+", stack_text) # No frame ids
Expand Down

0 comments on commit 7a27f40

Please sign in to comment.