aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_svn.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-07-05 15:06:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-07-05 15:06:51 -0400
commitb49435397a5094f94678adf3549cc8941aa469b7 (patch)
treeb123bdd63482393ba1e2859364920f40a3d9f71d /setuptools/tests/test_svn.py
parent5b865b1b6e23379d23aa80e74adb38db8b14b6ca (diff)
downloadexternal_python_setuptools-b49435397a5094f94678adf3549cc8941aa469b7.tar.gz
external_python_setuptools-b49435397a5094f94678adf3549cc8941aa469b7.tar.bz2
external_python_setuptools-b49435397a5094f94678adf3549cc8941aa469b7.zip
Use six for Python 2 compatibility
--HG-- branch : feature/issue-229 extra : source : 7b1997ececc5772798ce33a0f8e77387cb55a977
Diffstat (limited to 'setuptools/tests/test_svn.py')
-rw-r--r--setuptools/tests/test_svn.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/setuptools/tests/test_svn.py b/setuptools/tests/test_svn.py
index 33400362..0e6c3e95 100644
--- a/setuptools/tests/test_svn.py
+++ b/setuptools/tests/test_svn.py
@@ -6,9 +6,10 @@ import os
import subprocess
import sys
import unittest
-from setuptools.tests import environment
-from setuptools.compat import unicode, unichr
+import six
+
+from setuptools.tests import environment
from setuptools import svn_utils
from setuptools.tests.py26compat import skipIf
@@ -119,13 +120,13 @@ class ParserExternalXML(unittest.TestCase):
os.sep.join((example_base, folder3)),
# folder is third_party大介
os.sep.join((example_base,
- unicode('third_party') +
- unichr(0x5927) + unichr(0x4ecb))),
+ six.text_type('third_party') +
+ six.unichr(0x5927) + six.unichr(0x4ecb))),
os.sep.join((example_base, 'folder', folder2)),
os.sep.join((example_base, 'folder', folder3)),
os.sep.join((example_base, 'folder',
- unicode('third_party') +
- unichr(0x5927) + unichr(0x4ecb))),
+ six.text_type('third_party') +
+ six.unichr(0x5927) + six.unichr(0x4ecb))),
])
expected = set(os.path.normpath(x) for x in expected)