diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-05 20:15:23 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-05 20:15:23 -0500 |
commit | 009ebf9ed37dc39af25a465219a082efab99cc13 (patch) | |
tree | 8861a1ed9e8750ab757cdb368b361268c439714d /setuptools/tests/test_svn.py | |
parent | 69a13626755104a3e92294e31018c183c4eeefc4 (diff) | |
download | external_python_setuptools-009ebf9ed37dc39af25a465219a082efab99cc13.tar.gz external_python_setuptools-009ebf9ed37dc39af25a465219a082efab99cc13.tar.bz2 external_python_setuptools-009ebf9ed37dc39af25a465219a082efab99cc13.zip |
Delint (remove unused imports, excess whitespace, unnecessary syntax, and unused variables)
Diffstat (limited to 'setuptools/tests/test_svn.py')
-rw-r--r-- | setuptools/tests/test_svn.py | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/setuptools/tests/test_svn.py b/setuptools/tests/test_svn.py index 59ecb25b..5418b9a4 100644 --- a/setuptools/tests/test_svn.py +++ b/setuptools/tests/test_svn.py @@ -3,21 +3,13 @@ import os -import sys import unittest import codecs from setuptools.tests import environment -from setuptools.svn_utils import fsencode from setuptools.compat import unicode, unichr from setuptools import svn_utils -#requires python >= 2.4 -from subprocess import call as _call - -from distutils import log - - class TestSvnVersion(unittest.TestCase): @@ -64,13 +56,6 @@ class ParserInfoXML(unittest.TestCase): data = _read_utf8_file(path) - if ext_spaces: - folder2 = 'third party2' - folder3 = 'third party3' - else: - folder2 = 'third_party2' - folder3 = 'third_party3' - expected = set([ ("\\".join((example_base, 'a file')), 'file'), ("\\".join((example_base, 'folder')), 'dir'), @@ -116,7 +101,7 @@ class ParserExternalXML(unittest.TestCase): expected = set([ os.sep.join((example_base, folder2)), os.sep.join((example_base, folder3)), - #third_party大介 + # folder is third_party大介 os.sep.join((example_base, unicode('third_party') + unichr(0x5927) + unichr(0x4ecb))), @@ -129,7 +114,7 @@ class ParserExternalXML(unittest.TestCase): expected = set(os.path.normpath(x) for x in expected) dir_base = os.sep.join(('C:', 'development', 'svn_example')) - self.assertEqual(set(x for x \ + self.assertEqual(set(x for x in svn_utils.parse_externals_xml(data, dir_base)), expected) def test_svn15(self): @@ -150,7 +135,6 @@ class ParseExternal(unittest.TestCase): def parse_tester(self, svn_name, ext_spaces): path = os.path.join('setuptools', 'tests', 'svn_data', svn_name + '_ext_list.txt') - example_base = svn_name + '_example' data = _read_utf8_file(path) if ext_spaces: @@ -237,4 +221,3 @@ class TestSvn(environment.ZippedEnvironment): def test_suite(): return unittest.defaultTestLoader.loadTestsFromName(__name__) - |