diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-12 21:46:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 21:46:00 -0400 |
commit | 36f928924e9287eff2a6006477bf46154dfd3c44 (patch) | |
tree | 392a1042db2a53ebb400602e52a8185ba1337e7f /setuptools/tests | |
parent | faaaea0a233e97da9b0e53036c393d1f16fc0ea6 (diff) | |
parent | 56bcce894e99059a8abda29d8b919b0bee7fd1b9 (diff) | |
download | external_python_setuptools-36f928924e9287eff2a6006477bf46154dfd3c44.tar.gz external_python_setuptools-36f928924e9287eff2a6006477bf46154dfd3c44.tar.bz2 external_python_setuptools-36f928924e9287eff2a6006477bf46154dfd3c44.zip |
Merge pull request #2105 from hroncok/ack_2to3
Reuse @ack_2to3 in TestDevelop.test_2to3_user_mode
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/__init__.py | 4 | ||||
-rw-r--r-- | setuptools/tests/test_develop.py | 2 | ||||
-rw-r--r-- | setuptools/tests/test_test.py | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py index 9c77b51f..6377d785 100644 --- a/setuptools/tests/__init__.py +++ b/setuptools/tests/__init__.py @@ -6,7 +6,7 @@ from setuptools.extern.six import PY2, PY3 __all__ = [ - 'fail_on_ascii', 'py2_only', 'py3_only' + 'fail_on_ascii', 'py2_only', 'py3_only', 'ack_2to3' ] @@ -16,3 +16,5 @@ fail_on_ascii = pytest.mark.xfail(is_ascii, reason="Test fails in this locale") py2_only = pytest.mark.skipif(not PY2, reason="Test runs on Python 2 only") py3_only = pytest.mark.skipif(not PY3, reason="Test runs on Python 3 only") + +ack_2to3 = pytest.mark.filterwarnings('ignore:2to3 support is deprecated') diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index 792975fd..bb89a865 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -17,6 +17,7 @@ import pytest from setuptools.command.develop import develop from setuptools.dist import Distribution +from setuptools.tests import ack_2to3 from . import contexts from . import namespaces @@ -65,6 +66,7 @@ class TestDevelop: @pytest.mark.skipif( in_virtualenv or in_venv, reason="Cannot run when invoked in a virtualenv or venv") + @ack_2to3 def test_2to3_user_mode(self, test_env): settings = dict( name='foo', diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py index 0f77d8ff..892fd120 100644 --- a/setuptools/tests/test_test.py +++ b/setuptools/tests/test_test.py @@ -10,6 +10,7 @@ import pytest from setuptools.command.test import test from setuptools.dist import Distribution +from setuptools.tests import ack_2to3 from .textwrap import DALS @@ -73,9 +74,6 @@ 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): |