|
12 | 12 |
|
13 | 13 | import mesonpy
|
14 | 14 |
|
15 |
| -from mesonpy._util import chdir |
16 | 15 |
|
17 |
| -from .conftest import package_dir |
18 |
| - |
19 |
| - |
20 |
| -@pytest.mark.parametrize('package', ['pure', 'library']) |
21 | 16 | @pytest.mark.parametrize('system_patchelf', ['patchelf', None], ids=['patchelf', 'nopatchelf'])
|
22 | 17 | @pytest.mark.parametrize('ninja', [None, '1.8.1', '1.8.3'], ids=['noninja', 'oldninja', 'newninja'])
|
23 |
| -def test_get_requires_for_build_wheel(monkeypatch, package, system_patchelf, ninja): |
| 18 | +def test_get_requires_for_build_wheel(monkeypatch, package_pure, system_patchelf, ninja): |
24 | 19 | # the NINJA environment variable affects the ninja executable lookup and breaks the test
|
25 | 20 | monkeypatch.delenv('NINJA', raising=False)
|
26 | 21 |
|
@@ -51,14 +46,10 @@ def run(cmd: List[str], *args: object, **kwargs: object) -> subprocess.Completed
|
51 | 46 | if not ninja_available:
|
52 | 47 | expected |= {mesonpy._depstr.ninja}
|
53 | 48 |
|
54 |
| - if ( |
55 |
| - system_patchelf is None and sys.platform.startswith('linux') |
56 |
| - and (not ninja_available or (ninja_available and package != 'pure')) |
57 |
| - ): |
| 49 | + if system_patchelf is None and sys.platform.startswith('linux'): |
58 | 50 | expected |= {mesonpy._depstr.patchelf}
|
59 | 51 |
|
60 |
| - with chdir(package_dir / package): |
61 |
| - assert set(mesonpy.get_requires_for_build_wheel()) == expected |
| 52 | + assert set(mesonpy.get_requires_for_build_wheel()) == expected |
62 | 53 |
|
63 | 54 |
|
64 | 55 | def test_invalid_config_settings(capsys, package_pure, tmp_path_session):
|
|
0 commit comments