Blob Blame History Raw
diff -r a59fcbbf5ca7 setuptools/tests/test_sdist.py
--- a/setuptools/tests/test_sdist.py	Fri Apr 05 17:14:51 2013 -0400
+++ b/setuptools/tests/test_sdist.py	Thu Apr 11 18:04:06 2013 -0700
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 """sdist tests"""
 
-
+import locale
 import os
 import shutil
 import sys
@@ -11,7 +11,7 @@
 import unicodedata
 from StringIO import StringIO
 
-
+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
@@ -316,6 +316,8 @@
             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)