diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-01 16:48:11 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-01 16:48:11 -0500 |
| commit | 4f9b50728ae8c5cf81b13b2d4fd3098b9f18dfb1 (patch) | |
| tree | 6ea10c9e02a27ae63172513ed1a5b8e6ccfa866f /setuptools/tests/test_sdist.py | |
| parent | c04985bc9b29c2e181697b10059e99fc77ef532d (diff) | |
| download | python-setuptools-git-4f9b50728ae8c5cf81b13b2d4fd3098b9f18dfb1.tar.gz | |
Use pytest for skips
Diffstat (limited to 'setuptools/tests/test_sdist.py')
| -rw-r--r-- | setuptools/tests/test_sdist.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index 123e3ea9..120911d2 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -9,7 +9,8 @@ import tempfile import unittest import unicodedata import contextlib -from setuptools.tests.py26compat import skipIf + +import pytest import pkg_resources from setuptools.compat import StringIO, unicode, PY3, PY2 @@ -336,8 +337,9 @@ class TestSdistTest(unittest.TestCase): filename = filename.decode('latin-1') self.assertFalse(filename in cmd.filelist.files) - @skipIf(PY3 and locale.getpreferredencoding() != 'UTF-8', - 'Unittest fails if locale is not utf-8 but the manifests is recorded correctly') + @pytest.mark.skipif(PY3 and locale.getpreferredencoding() != 'UTF-8', + reason='Unittest fails if locale is not utf-8 but the manifests is ' + 'recorded correctly') def test_sdist_with_utf8_encoded_filename(self): # Test for #303. dist = Distribution(SETUP_ATTRS) |
