diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-01 12:41:58 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-01 12:41:58 -0500 |
commit | efededd6aa8be5ab054037ee32680a772d06a3c5 (patch) | |
tree | 13832b34ada498d9845550dc8b36328aec606d30 /setuptools/tests/test_sdist.py | |
parent | 81c103f75d22580b14f162103232632444c9ec6f (diff) | |
download | external_python_setuptools-efededd6aa8be5ab054037ee32680a772d06a3c5.tar.gz external_python_setuptools-efededd6aa8be5ab054037ee32680a772d06a3c5.tar.bz2 external_python_setuptools-efededd6aa8be5ab054037ee32680a772d06a3c5.zip |
Expect failures on these tests due to ASCII
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 9013b505..4313c456 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -16,6 +16,8 @@ from setuptools.compat import StringIO, unicode, PY3, PY2 from setuptools.command.sdist import sdist from setuptools.command.egg_info import manifest_maker from setuptools.dist import Distribution +from setuptools.tests import fail_on_ascii + SETUP_ATTRS = { 'name': 'sdist_test', @@ -147,6 +149,7 @@ class TestSdistTest: assert 'setup.py' not in manifest, manifest assert 'setup.cfg' not in manifest, manifest + @fail_on_ascii def test_manifest_is_written_with_utf8_encoding(self): # Test for #303. dist = Distribution(SETUP_ATTRS) @@ -256,6 +259,7 @@ class TestSdistTest: # The filelist should have been updated as well assert u_filename not in mm.filelist.files + @fail_on_ascii def test_manifest_is_read_with_utf8_encoding(self): # Test for #303. dist = Distribution(SETUP_ATTRS) @@ -320,9 +324,7 @@ class TestSdistTest: filename = filename.decode('latin-1') assert filename not in cmd.filelist.files - @pytest.mark.skipif(PY3 and locale.getpreferredencoding() != 'UTF-8', - reason='Unittest fails if locale is not utf-8 but the manifests is ' - 'recorded correctly') + @fail_on_ascii def test_sdist_with_utf8_encoded_filename(self): # Test for #303. dist = Distribution(SETUP_ATTRS) |