Remove hardcoded libpython binaries and add debug step
All checks were successful
build / build-linux (push) Successful in 16s

This commit is contained in:
kdusek
2025-12-07 23:15:18 +01:00
parent 308ce7768e
commit 6a1fe63684
1807 changed files with 172293 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
import pytest
from jaraco import path
from setuptools.glob import glob
@pytest.mark.parametrize(
('tree', 'pattern', 'matches'),
(
('', b'', []),
('', '', []),
(
"""
appveyor.yml
CHANGES.rst
LICENSE
MANIFEST.in
pyproject.toml
README.rst
setup.cfg
setup.py
""",
'*.rst',
('CHANGES.rst', 'README.rst'),
),
(
"""
appveyor.yml
CHANGES.rst
LICENSE
MANIFEST.in
pyproject.toml
README.rst
setup.cfg
setup.py
""",
b'*.rst',
(b'CHANGES.rst', b'README.rst'),
),
),
)
def test_glob(monkeypatch, tmpdir, tree, pattern, matches):
monkeypatch.chdir(tmpdir)
path.build({name: '' for name in tree.split()})
assert list(sorted(glob(pattern))) == list(sorted(matches))