Skip to content

Commit 7a27f40

Browse files
committed
test: fix a test on free-threading, use abiflags to get site-packages path correct
1 parent 2b53664 commit 7a27f40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/python-nightly.yml

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
set -xe
105105
python -VV
106106
python -m site
107+
python -m sysconfig
107108
python -c "import sys; print('GIL:', getattr(sys, '_is_gil_enabled', lambda: True)())"
108109
python -m coverage debug sys
109110
python -m coverage debug pybehave

tests/test_debug.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def test_short_stack_full(self) -> None:
376376
else:
377377
py = "pypy" if env.PYPY else "python"
378378
majv, minv = sys.version_info[:2]
379-
pylib = f"lib{s}{py}{majv}.{minv}"
379+
pylib = f"lib{s}{py}{majv}.{minv}{sys.abiflags}"
380380
assert len(re_lines(fr"{s}{pylib}{s}site-packages{s}_pytest", stack_text)) > 3
381381
assert len(re_lines(fr"{s}{pylib}{s}site-packages{s}pluggy", stack_text)) > 3
382382
assert not re_lines(r" 0x[0-9a-fA-F]+", stack_text) # No frame ids

0 commit comments

Comments
 (0)