Blame SOURCES/distribute-skip-sdist_with_utf8_encoded_filename.patch

f0e125
Index: setuptools-0.8b7/setuptools/tests/test_sdist.py
f0e125
===================================================================
f0e125
--- setuptools-0.8b7.orig/setuptools/tests/test_sdist.py
f0e125
+++ setuptools-0.8b7/setuptools/tests/test_sdist.py
f0e125
@@ -1,7 +1,7 @@
f0e125
 # -*- coding: utf-8 -*-
f0e125
 """sdist tests"""
f0e125
 
f0e125
-
f0e125
+import locale
f0e125
 import os
f0e125
 import shutil
f0e125
 import sys
f0e125
@@ -9,6 +9,7 @@ import tempfile
f0e125
 import unittest
f0e125
 import unicodedata
f0e125
 
f0e125
+from setuptools.tests.py26compat import skipIf
f0e125
 from setuptools.compat import StringIO, unicode
f0e125
 from setuptools.command.sdist import sdist
f0e125
 from setuptools.command.egg_info import manifest_maker
f0e125
@@ -318,6 +319,8 @@ class TestSdistTest(unittest.TestCase):
f0e125
             filename = filename.decode('latin-1')
f0e125
             self.assertFalse(filename in cmd.filelist.files)
f0e125
 
f0e125
+    @skipIf(sys.version_info >= (3,) and locale.getpreferredencoding() != 'UTF-8',
f0e125
+            'Unittest fails if locale is not utf-8 but the manifests is recorded correctly')
f0e125
     def test_sdist_with_utf8_encoded_filename(self):
f0e125
         # Test for #303.
f0e125
         dist = Distribution(SETUP_ATTRS)