Skip to content

Commit 38d9818

Browse files
dnicolodirgommers
authored andcommitted
MAINT: tests cleanup
1 parent db80bdc commit 38d9818

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test_tags.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,42 +62,42 @@ def test_python_host_platform(monkeypatch):
6262
assert mesonpy._tags.get_platform_tag().endswith('x86_64')
6363

6464

65-
def wheel_builder_test_factory(monkeypatch, content, pure=True, limited_api=False):
65+
def wheel_builder_test_factory(content, pure=True, limited_api=False):
6666
manifest = defaultdict(list)
6767
manifest.update({key: [(pathlib.Path(x), os.path.join('build', x)) for x in value] for key, value in content.items()})
6868
return mesonpy._WheelBuilder(None, manifest, limited_api)
6969

7070

71-
def test_tag_empty_wheel(monkeypatch):
72-
builder = wheel_builder_test_factory(monkeypatch, {})
71+
def test_tag_empty_wheel():
72+
builder = wheel_builder_test_factory({})
7373
assert str(builder.tag) == 'py3-none-any'
7474

7575

76-
def test_tag_purelib_wheel(monkeypatch):
77-
builder = wheel_builder_test_factory(monkeypatch, {
76+
def test_tag_purelib_wheel():
77+
builder = wheel_builder_test_factory({
7878
'purelib': ['pure.py'],
7979
})
8080
assert str(builder.tag) == 'py3-none-any'
8181

8282

83-
def test_tag_platlib_wheel(monkeypatch):
84-
builder = wheel_builder_test_factory(monkeypatch, {
83+
def test_tag_platlib_wheel():
84+
builder = wheel_builder_test_factory({
8585
'platlib': [f'extension{SUFFIX}'],
8686
})
8787
assert str(builder.tag) == f'{INTERPRETER}-{ABI}-{PLATFORM}'
8888

8989

90-
def test_tag_stable_abi(monkeypatch):
91-
builder = wheel_builder_test_factory(monkeypatch, {
90+
def test_tag_stable_abi():
91+
builder = wheel_builder_test_factory({
9292
'platlib': [f'extension{ABI3SUFFIX}'],
9393
}, limited_api=True)
9494
assert str(builder.tag) == f'{INTERPRETER}-abi3-{PLATFORM}'
9595

9696

9797
@pytest.mark.skipif(sys.version_info < (3, 8) and sys.platform == 'win32',
9898
reason='Extension modules filename suffix without ABI tags')
99-
def test_tag_mixed_abi(monkeypatch):
100-
builder = wheel_builder_test_factory(monkeypatch, {
99+
def test_tag_mixed_abi():
100+
builder = wheel_builder_test_factory({
101101
'platlib': [f'extension{ABI3SUFFIX}', f'another{SUFFIX}'],
102102
}, pure=False, limited_api=True)
103103
with pytest.raises(mesonpy.BuildError, match='The package declares compatibility with Python limited API but '):

0 commit comments

Comments
 (0)