diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-10 13:19:52 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-10 13:19:52 -0400 |
commit | 2d607a9e59aa854b387f22d79301acb8739b133a (patch) | |
tree | 21d3ef4c3c933ddf280d5df4ca4f6d6f1a9f5754 /setuptools/tests | |
parent | 40f81af021b899b76b96eef52bf020c2348e1aea (diff) | |
download | external_python_setuptools-2d607a9e59aa854b387f22d79301acb8739b133a.tar.gz external_python_setuptools-2d607a9e59aa854b387f22d79301acb8739b133a.tar.bz2 external_python_setuptools-2d607a9e59aa854b387f22d79301acb8739b133a.zip |
Emit deprecation warning when 2to3 is used. Ref #2086.
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py index 8ee70a7e..0f77d8ff 100644 --- a/setuptools/tests/test_test.py +++ b/setuptools/tests/test_test.py @@ -73,7 +73,11 @@ def quiet_log(): log.set_verbosity(0) +ack_2to3 = pytest.mark.filterwarnings('ignore:2to3 support is deprecated') + + @pytest.mark.usefixtures('sample_test', 'quiet_log') +@ack_2to3 def test_test(capfd): params = dict( name='foo', @@ -124,6 +128,7 @@ def test_tests_are_run_once(capfd): @pytest.mark.usefixtures('sample_test') +@ack_2to3 def test_warns_deprecation(capfd): params = dict( name='foo', @@ -149,6 +154,7 @@ def test_warns_deprecation(capfd): @pytest.mark.usefixtures('sample_test') +@ack_2to3 def test_deprecation_stderr(capfd): params = dict( name='foo', |