Skip to content

Commit e1995df

Browse files
committed
TST: use consistent variables names
1 parent d522d66 commit e1995df

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/test_wheel.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
INTERPRETER_VERSION = f'{sys.version_info[0]}{sys.version_info[1]}'
2020

2121
_tag = next(packaging.tags.sys_tags())
22-
INTERPRETER_TAG = _tag.abi
23-
PYTHON_TAG = _tag.interpreter
24-
PLATFORM_TAG = mesonpy._adjust_manylinux_tag(_tag.platform)
22+
ABI = _tag.abi
23+
INTERPRETER = _tag.interpreter
24+
PLATFORM = mesonpy._adjust_manylinux_tag(_tag.platform)
2525

2626
if platform.system() == 'Linux':
2727
SHARED_LIB_EXT = 'so'
@@ -79,9 +79,9 @@ def test_scipy_like(wheel_scipy_like):
7979
assert wheel_contents(artifact) == expecting
8080

8181
name = artifact.parsed_filename
82-
assert name.group('pyver') == PYTHON_TAG
83-
assert name.group('abi') == INTERPRETER_TAG
84-
assert name.group('plat') == PLATFORM_TAG
82+
assert name.group('pyver') == INTERPRETER
83+
assert name.group('abi') == ABI
84+
assert name.group('plat') == PLATFORM
8585

8686

8787
@pytest.mark.skipif(platform.system() != 'Linux', reason='Needs library vendoring, only implemented in POSIX')
@@ -177,16 +177,16 @@ def test_executable_bit(wheel_executable_bit):
177177

178178
def test_detect_wheel_tag_module(wheel_purelib_and_platlib):
179179
name = wheel.wheelfile.WheelFile(wheel_purelib_and_platlib).parsed_filename
180-
assert name.group('pyver') == PYTHON_TAG
181-
assert name.group('abi') == INTERPRETER_TAG
182-
assert name.group('plat') == PLATFORM_TAG
180+
assert name.group('pyver') == INTERPRETER
181+
assert name.group('abi') == ABI
182+
assert name.group('plat') == PLATFORM
183183

184184

185185
def test_detect_wheel_tag_script(wheel_executable):
186186
name = wheel.wheelfile.WheelFile(wheel_executable).parsed_filename
187187
assert name.group('pyver') == 'py3'
188188
assert name.group('abi') == 'none'
189-
assert name.group('plat') == PLATFORM_TAG
189+
assert name.group('plat') == PLATFORM
190190

191191

192192
@pytest.mark.skipif(platform.system() != 'Linux', reason='Unsupported on this platform for now')

0 commit comments

Comments
 (0)