File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 22This is part of the MSS Python's module.
33Source: https://github.com/BoboTiG/python-mss
44"""
5+ import platform
56from subprocess import STDOUT , check_call , check_output
67
8+ import pytest
9+
710from mss import __version__
811
9- INSTALL = "python -m build --sdist --wheel" .split ()
12+ if platform .system ().lower () != "linux" :
13+ pytestmark = pytest .mark .skip
14+
15+ # Note: using `--no-isolation` because it doesn't work with `tox`
16+ INSTALL = "python -m build --no-isolation --sdist --wheel" .split ()
1017CHECK = "twine check dist/*" .split ()
1118
1219
1320def test_wheel_python_3_only ():
1421 """Ensure the produced wheel is Python 3 only."""
15- output = check_output (INSTALL , stderr = STDOUT , text = True )
16- text = f"mss-{ __version__ } -py3-none-any.whl"
22+ output = str ( check_output (INSTALL , stderr = STDOUT ) )
23+ text = f"Successfully built mss- { __version__ } .tar.gz and mss-{ __version__ } -py3-none-any.whl"
1724 assert text in output
1825
19- print (output )
20- assert "warning" not in output .lower ()
21-
2226 check_call (CHECK )
You can’t perform that action at this time.
0 commit comments