Marcel Telka
2023-09-29 033bdf81057d31ad126107af67b526285ea48e21
python/detect_test_pollution: update to 1.2.0

3 files modified
71 ■■■■■ changed files
components/python/detect_test_pollution/Makefile 4 ●●●● patch | view | raw | blame | history
components/python/detect_test_pollution/patches/01-pytest-disable-plugins.patch 13 ●●●● patch | view | raw | blame | history
components/python/detect_test_pollution/test/results-all.master 54 ●●●● patch | view | raw | blame | history
components/python/detect_test_pollution/Makefile
@@ -19,13 +19,13 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        detect_test_pollution
HUMAN_VERSION =            1.1.1
HUMAN_VERSION =            1.2.0
COMPONENT_SUMMARY =        detect_test_pollution - a tool to detect test pollution
COMPONENT_PROJECT_URL =        https://github.com/asottile/detect-test-pollution
COMPONENT_ARCHIVE_URL =        \
    https://github.com/asottile/detect-test-pollution/archive/refs/tags/v$(HUMAN_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:1e162642442f7763c6da465de0afcf2e0e3267845a6dd07aaf59b09a296ca9e9
    sha256:768636d6a670c2876e09508a460534a8e6b03872b07fd42599ef8ae225817150
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE
components/python/detect_test_pollution/patches/01-pytest-disable-plugins.patch
@@ -1,5 +1,5 @@
--- detect-test-pollution-1.1.1/tests/detect_test_pollution_test.py.orig
+++ detect-test-pollution-1.1.1/tests/detect_test_pollution_test.py
--- detect-test-pollution-1.2.0/tests/detect_test_pollution_test.py.orig
+++ detect-test-pollution-1.2.0/tests/detect_test_pollution_test.py
@@ -17,6 +17,7 @@
     res = pytester.inline_runsource(
         'def test(): pass',
@@ -27,3 +27,12 @@
     )
     assert res.ret == 1
 
@@ -107,6 +113,8 @@
         '-p', detect_test_pollution.__name__,
         # use `=` to avoid pytest's basedir detection
         f'--dtp-results-output-file={out}',
+        '-p', 'no:black',
+        '-p', 'no:mypy',
     )
     assert res.ret == 1
components/python/detect_test_pollution/test/results-all.master
@@ -1,13 +1,11 @@
ROOT: tox-gh-actions won't override envlist because tox is not running in GitHub Actions
py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
py$(PYV): commands[0]> python -m coverage erase
py$(PYV): commands[1]> python -m coverage run -m pytest tests
============================= test session starts ==============================
platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python
cachedir: .tox/py$(PYV)/.pytest_cache
metadata: {'Python': '3.9.16', 'Platform': 'SunOS-5.11-i86pc-i386-64bit-ELF', 'Packages': {'pytest': '7.4.0', 'pluggy': '1.3.0'}, 'Plugins': {'anyio': '3.7.1', 'metadata': '3.0.0', 'flake8': '1.1.1', 'mypy-plugins': '3.0.0', 'datadir': '1.4.1', 'mock': '3.11.1', 'custom-exit-code': '0.3.0', 'console-scripts': '1.4.1', 'socket': '0.6.0', 'xdist': '3.2.1', 'time-machine': '2.12.0', 'perf': '0.12.0', 'forked': '1.6.0', 'shell-utilities': '1.8.0', 'env': '1.0.1', 'lazy-fixture': '0.6.3', 'backports.unittest-mock': '1.5.1', 'freezegun': '0.4.2', 'timeout': '2.0.2', 'regressions': '2.5.0', 'helpers-namespace': '2021.12.29', 'typeguard': '4.1.3', 'subtests': '0.10.0', 'rerunfailures': '12.0', 'pytest_freezer': '0.4.8', 'subprocess': '1.5.0', 'skip-markers': '1.4.1', 'pyfakefs': '5.2.4', 'enabler': '2.3.1', 'black-multipy': '1.0.1', 'Faker': '19.3.1', 'kgb': '7.1.1', 'teamcity-messages': '1.32', 'expect': '1.1.0', 'travis-fold': '1.3.0', 'pytest_httpserver': '1.0.8', 'jaraco.test': '5.3.0'}}
rootdir: $(@D)
collecting ... collected 22 items
collecting ... collected 23 items
tests/detect_test_pollution_test.py::test_common_testpath[inputs0-.] PASSED
tests/detect_test_pollution_test.py::test_common_testpath[inputs1-a] PASSED
@@ -31,33 +29,18 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids PASSED
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids PASSED
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output PASSED
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error PASSED
=============================== warnings summary ===============================
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
  $(PYTHON_DIR)/vendor-packages/pytest_relaxed/plugin.py:40: PytestDeprecationWarning: The hookimpl pytest_configure uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(trylast=True) decorator instead
   to configure the hooks.
   See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    @pytest.mark.trylast  # So we can be sure builtin terminalreporter exists
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pytest_reporter/__init__.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import get_distribution, DistributionNotFound
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py: 10 warnings
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('paste')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
@@ -66,18 +49,12 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('flufl')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py: 10 warnings
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
@@ -86,6 +63,7 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze.sphinx')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
@@ -94,6 +72,7 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2350: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(parent)
@@ -102,6 +81,7 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
@@ -110,6 +90,7 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
@@ -118,26 +99,17 @@
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output_error
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zest')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
tests/detect_test_pollution_test.py: 60 warnings
tests/detect_test_pollution_test.py: 75 warnings
  $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)
tests/detect_test_pollution_test.py::test_pytest_plugin_does_not_crash_when_not_enabled
tests/detect_test_pollution_test.py::test_pytest_plugin_outputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_inputs_testids
tests/detect_test_pollution_test.py::test_pytest_plugin_results_output
  $(PYTHON_DIR)/vendor-packages/pytest_tempdir/plugin.py:150: PytestDeprecationWarning: The hookimpl pytest_tempdir_temproot uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(trylast=True) decorator instead
   to configure the hooks.
   See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    @pytest.mark.trylast
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======== 22 passed, 112 warnings ========
======== 23 passed, 130 warnings ========
  py$(PYV): OK
  congratulations :)