@@ -62,42 +62,42 @@ def test_python_host_platform(monkeypatch):
62
62
assert mesonpy ._tags .get_platform_tag ().endswith ('x86_64' )
63
63
64
64
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 ):
66
66
manifest = defaultdict (list )
67
67
manifest .update ({key : [(pathlib .Path (x ), os .path .join ('build' , x )) for x in value ] for key , value in content .items ()})
68
68
return mesonpy ._WheelBuilder (None , manifest , limited_api )
69
69
70
70
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 ({})
73
73
assert str (builder .tag ) == 'py3-none-any'
74
74
75
75
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 ({
78
78
'purelib' : ['pure.py' ],
79
79
})
80
80
assert str (builder .tag ) == 'py3-none-any'
81
81
82
82
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 ({
85
85
'platlib' : [f'extension{ SUFFIX } ' ],
86
86
})
87
87
assert str (builder .tag ) == f'{ INTERPRETER } -{ ABI } -{ PLATFORM } '
88
88
89
89
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 ({
92
92
'platlib' : [f'extension{ ABI3SUFFIX } ' ],
93
93
}, limited_api = True )
94
94
assert str (builder .tag ) == f'{ INTERPRETER } -abi3-{ PLATFORM } '
95
95
96
96
97
97
@pytest .mark .skipif (sys .version_info < (3 , 8 ) and sys .platform == 'win32' ,
98
98
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 ({
101
101
'platlib' : [f'extension{ ABI3SUFFIX } ' , f'another{ SUFFIX } ' ],
102
102
}, pure = False , limited_api = True )
103
103
with pytest .raises (mesonpy .BuildError , match = 'The package declares compatibility with Python limited API but ' ):
0 commit comments