diff --git a/tests/test_distributions.py b/tests/test_distributions.py index b40cd63..48a2d85 100644 --- a/tests/test_distributions.py +++ b/tests/test_distributions.py @@ -605,11 +605,25 @@ def test_wheel_wrong_dist_info(tmp_pathplus: PathPlus): only_pypy("Output differs on PyPy") ] ), + pytest.param( + "3.7", + marks=[ + only_version(3.7, reason="Output differs on Python 3.7"), + not_pypy("Output differs on PyPy") + ] + ), + pytest.param( + "3.7-pypy", + marks=[ + only_version(3.7, reason="Output differs on Python 3.7"), + only_pypy("Output differs on PyPy") + ] + ), pytest.param( "cpython", marks=[ pytest.mark.skipif( - not ((3, 7) <= sys.version_info[:2] <= (3, 10)), + not ((3, 8) <= sys.version_info[:2] <= (3, 10)), reason="Output differs on Python 3.7" ), not_pypy("Output differs on PyPy") @@ -619,7 +633,7 @@ def test_wheel_wrong_dist_info(tmp_pathplus: PathPlus): "pypy", marks=[ pytest.mark.skipif( - not ((3, 7) <= sys.version_info[:2] <= (3, 10)), + not ((3, 8) <= sys.version_info[:2] <= (3, 10)), reason="Output differs on Python 3.7" ), only_pypy("Output differs on PyPy") @@ -628,7 +642,7 @@ def test_wheel_wrong_dist_info(tmp_pathplus: PathPlus): pytest.param("3.11", marks=only_version("3.11", reason="Output differs on Python 3.11")), ] ) -def test_packages_distributions(advanced_data_regression: AdvancedDataRegressionFixture, version): +def test_packages_distributions(advanced_data_regression: AdvancedDataRegressionFixture, version: str): data = distributions.packages_distributions() advanced_data_regression.check({k: list(v) for k, v in data.items()}) diff --git a/tests/test_distributions_/test_packages_distributions_3_7_.yml b/tests/test_distributions_/test_packages_distributions_3_7_.yml new file mode 100644 index 0000000..5fcceeb --- /dev/null +++ b/tests/test_distributions_/test_packages_distributions_3_7_.yml @@ -0,0 +1,145 @@ +_distutils_hack: +- setuptools +_pytest: +- pytest +_yaml: +- PyYAML +alabaster: +- alabaster +apeye: +- apeye +apeye_core: +- apeye-core +atomicwrites: +- atomicwrites +attr: +- attrs +attrs: +- attrs +babel: +- Babel +certifi: +- certifi +charset_normalizer: +- charset-normalizer +click: +- click +coincidence: +- coincidence +colorama: +- colorama +consolekit: +- consolekit +coverage: +- coverage +coverage_pyver_pragma: +- coverage-pyver-pragma +deprecation: +- deprecation +deprecation_alias: +- deprecation-alias +dist_meta: +- dist-meta +docutils: +- docutils +dom_toml: +- dom_toml +domdf_python_tools: +- domdf-python-tools +exceptiongroup: +- exceptiongroup +first: +- first +flake8: +- flake8 +handy_archives: +- handy-archives +hpy: +- hpy +idna: +- idna +imagesize: +- imagesize +importlib_metadata: +- importlib-metadata +iniconfig: +- iniconfig +jinja2: +- Jinja2 +markupsafe: +- MarkupSafe +mccabe: +- mccabe +mistletoe: +- mistletoe +natsort: +- natsort +packaging: +- packaging +pip: +- pip +pkg_resources: +- setuptools +platformdirs: +- platformdirs +pluggy: +- pluggy +py: +- pytest +pycodestyle: +- pycodestyle +pyflakes: +- pyflakes +pygments: +- Pygments +pyparsing: +- pyparsing +pypi_json: +- pypi-json +pytest: +- pytest +pytest_cov: +- pytest-cov +pytest_datadir: +- pytest-datadir +pytest_randomly: +- pytest-randomly +pytest_regressions: +- pytest-regressions +pytest_rerunfailures: +- pytest-rerunfailures +pytest_timeout: +- pytest-timeout +pytz: +- pytz +requests: +- requests +setuptools: +- setuptools +shippinglabel: +- shippinglabel +snowballstemmer: +- snowballstemmer +sphinx: +- Sphinx +sphinxcontrib: +- sphinxcontrib-applehelp +- sphinxcontrib-devhelp +- sphinxcontrib-htmlhelp +- sphinxcontrib-jsmath +- sphinxcontrib-qthelp +- sphinxcontrib-serializinghtml +toml: +- toml +tomli: +- tomli +typing_extensions: +- typing_extensions +urllib3: +- urllib3 +wheel: +- wheel +yaml: +- PyYAML +zipp: +- zipp diff --git a/tests/test_distributions_/test_packages_distributions_3_7_pypy_.yml b/tests/test_distributions_/test_packages_distributions_3_7_pypy_.yml new file mode 100644 index 0000000..167d79a --- /dev/null +++ b/tests/test_distributions_/test_packages_distributions_3_7_pypy_.yml @@ -0,0 +1,143 @@ +_distutils_hack: +- setuptools +_pytest: +- pytest +_yaml: +- PyYAML +alabaster: +- alabaster +apeye: +- apeye +apeye_core: +- apeye-core +atomicwrites: +- atomicwrites +attr: +- attrs +attrs: +- attrs +babel: +- Babel +certifi: +- certifi +charset_normalizer: +- charset-normalizer +click: +- click +coincidence: +- coincidence +colorama: +- colorama +consolekit: +- consolekit +coverage: +- coverage +coverage_pyver_pragma: +- coverage-pyver-pragma +deprecation: +- deprecation +deprecation_alias: +- deprecation-alias +dist_meta: +- dist-meta +docutils: +- docutils +dom_toml: +- dom_toml +domdf_python_tools: +- domdf-python-tools +exceptiongroup: +- exceptiongroup +first: +- first +flake8: +- flake8 +handy_archives: +- handy-archives +idna: +- idna +imagesize: +- imagesize +importlib_metadata: +- importlib-metadata +iniconfig: +- iniconfig +jinja2: +- Jinja2 +markupsafe: +- MarkupSafe +mccabe: +- mccabe +mistletoe: +- mistletoe +natsort: +- natsort +packaging: +- packaging +pip: +- pip +pkg_resources: +- setuptools +platformdirs: +- platformdirs +pluggy: +- pluggy +py: +- pytest +pycodestyle: +- pycodestyle +pyflakes: +- pyflakes +pygments: +- Pygments +pyparsing: +- pyparsing +pypi_json: +- pypi-json +pytest: +- pytest +pytest_cov: +- pytest-cov +pytest_datadir: +- pytest-datadir +pytest_randomly: +- pytest-randomly +pytest_regressions: +- pytest-regressions +pytest_rerunfailures: +- pytest-rerunfailures +pytest_timeout: +- pytest-timeout +pytz: +- pytz +requests: +- requests +setuptools: +- setuptools +shippinglabel: +- shippinglabel +snowballstemmer: +- snowballstemmer +sphinx: +- Sphinx +sphinxcontrib: +- sphinxcontrib-applehelp +- sphinxcontrib-devhelp +- sphinxcontrib-htmlhelp +- sphinxcontrib-jsmath +- sphinxcontrib-qthelp +- sphinxcontrib-serializinghtml +toml: +- toml +tomli: +- tomli +typing_extensions: +- typing_extensions +urllib3: +- urllib3 +wheel: +- wheel +yaml: +- PyYAML +zipp: +- zipp