From f1b8431d9969cf93d1e0425344a7a67ce206e077 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 5 Jul 2019 19:04:55 -0300 Subject: [PATCH 1/2] Sort parametrize params to test_external_plugins_integrated This might cause problems during collection with pytest-xdist; we didn't see any so far mostly by luck I think. Shame on me for letting that slip in. --- testing/deprecated_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/deprecated_test.py b/testing/deprecated_test.py index 5cbb694b1..39439ab44 100644 --- a/testing/deprecated_test.py +++ b/testing/deprecated_test.py @@ -70,7 +70,7 @@ def test_terminal_reporter_writer_attr(pytestconfig): assert terminal_reporter.writer is terminal_reporter._tw -@pytest.mark.parametrize("plugin", deprecated.DEPRECATED_EXTERNAL_PLUGINS) +@pytest.mark.parametrize("plugin", sorted(deprecated.DEPRECATED_EXTERNAL_PLUGINS)) @pytest.mark.filterwarnings("default") def test_external_plugins_integrated(testdir, plugin): testdir.syspathinsert() From 7aff51ee837679be9e0d1201a65ffe7d2df8c90c Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 5 Jul 2019 20:16:12 -0300 Subject: [PATCH 2/2] Show warning about importing abcs from collections once This is being raised by `unittest2.compatibility`: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 9757b0983..95c49db04 100644 --- a/tox.ini +++ b/tox.ini @@ -131,6 +131,7 @@ filterwarnings = ignore:yield tests are deprecated, and scheduled to be removed in pytest 4.0:pytest.RemovedInPytest4Warning ignore:Metafunc.addcall is deprecated and scheduled to be removed in pytest 4.0:pytest.RemovedInPytest4Warning ignore::pytest.RemovedInPytest4Warning + default:Using or importing the ABCs:DeprecationWarning:unittest2.* ignore:Module already imported so cannot be rewritten:pytest.PytestWarning # produced by path.local ignore:bad escape.*:DeprecationWarning:re