diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2013-10-30 14:09:28 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-10-30 14:09:28 -0400 |
| commit | 3e5c9e4ef4e2a68e2ac40fa8bf0c2906a31038a2 (patch) | |
| tree | 8f4277a0546f6c60ddda067dd4cd239f3af976cd /setuptools/tests/test_sdist.py | |
| parent | 78f01306a08285e9f2abe6ad749f6ce884e12555 (diff) | |
| parent | 1e0a9fb4a7f76e45970d11955caf5a1e5eb1db47 (diff) | |
| download | python-setuptools-git-3e5c9e4ef4e2a68e2ac40fa8bf0c2906a31038a2.tar.gz | |
Merge with default
Diffstat (limited to 'setuptools/tests/test_sdist.py')
| -rw-r--r-- | setuptools/tests/test_sdist.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index 8d6aff19..65a9f0b3 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """sdist tests""" - +import locale import os import shutil import sys @@ -11,6 +11,7 @@ import unicodedata from setuptools.tests import environment from setuptools.compat import StringIO, unicode +from setuptools.tests.py26compat import skipIf from setuptools.command.sdist import sdist, walk_revctrl from setuptools.command.egg_info import manifest_maker from setuptools.dist import Distribution @@ -320,6 +321,8 @@ class TestSdistTest(unittest.TestCase): filename = filename.decode('latin-1') self.assertFalse(filename in cmd.filelist.files) + @skipIf(sys.version_info >= (3,) and locale.getpreferredencoding() != 'UTF-8', + '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) |
