2013-07-05 20:47:52 +00:00
|
|
|
Index: setuptools-0.8b7/setuptools/tests/test_sdist.py
|
|
|
|
===================================================================
|
|
|
|
--- setuptools-0.8b7.orig/setuptools/tests/test_sdist.py
|
|
|
|
+++ setuptools-0.8b7/setuptools/tests/test_sdist.py
|
2013-04-12 01:09:47 +00:00
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""sdist tests"""
|
|
|
|
|
|
|
|
-
|
|
|
|
+import locale
|
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
import sys
|
2013-07-05 20:47:52 +00:00
|
|
|
@@ -9,6 +9,7 @@ import tempfile
|
|
|
|
import unittest
|
2013-04-12 01:09:47 +00:00
|
|
|
import unicodedata
|
|
|
|
|
|
|
|
+from setuptools.tests.py26compat import skipIf
|
2013-07-05 20:47:52 +00:00
|
|
|
from setuptools.compat import StringIO, unicode
|
2013-04-12 01:09:47 +00:00
|
|
|
from setuptools.command.sdist import sdist
|
|
|
|
from setuptools.command.egg_info import manifest_maker
|
2013-07-05 20:47:52 +00:00
|
|
|
@@ -318,6 +319,8 @@ class TestSdistTest(unittest.TestCase):
|
2013-04-12 01:09:47 +00:00
|
|
|
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)
|