1. PyPA
  2. Python Packaging Authority Projects
  3. setuptools


Toshio Kuratomi  committed cc9b19c

Skip test when file system encoding is not suitable. Fixes #55 and Distribute #363.

  • Participants
  • Parent commits 27df3c7
  • Branches default
  • Tags 1.1.7

Comments (0)

Files changed (2)

File CHANGES.txt

View file
   launcher for 'develop' installs).
 * ``ez_setup.py`` now ensures partial downloads are cleaned up following
   a failed download.
+* Distribute #363 and Issue #55: Skip an sdist test that fails on locales
+  other than UTF-8.

File setuptools/tests/test_sdist.py

View file
 # -*- coding: utf-8 -*-
 """sdist tests"""
+import locale
 import os
 import shutil
 import sys
 import unicodedata
 from setuptools.compat import StringIO, unicode
+from setuptools.tests.py26compat import skipIf
 from setuptools.command.sdist import sdist
 from setuptools.command.egg_info import manifest_maker
 from setuptools.dist import Distribution
             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)