Commit 30bb58f0 authored by Philip Thiem's avatar Philip Thiem

Added a legacy fallback test

Added in code to after a deprecation warning parse the .svn files
Should also parse externals.

--HG--
extra : rebase_source : 9dd3bcf22cb56eb0826051f9e477f155e47cdbf6
parent 8c645eb0
[setuptools.installation]
eggsecutable = setuptools.command.easy_install:bootstrap
[console_scripts]
easy_install = setuptools.command.easy_install:main
easy_install-3.3 = setuptools.command.easy_install:main
[distutils.setup_keywords]
use_2to3 = setuptools.dist:assert_bool
namespace_packages = setuptools.dist:check_nsp
package_data = setuptools.dist:check_package_data
use_2to3_exclude_fixers = setuptools.dist:assert_string_list
dependency_links = setuptools.dist:assert_string_list
use_2to3_fixers = setuptools.dist:assert_string_list
test_suite = setuptools.dist:check_test_suite
exclude_package_data = setuptools.dist:check_package_data
extras_require = setuptools.dist:check_extras
install_requires = setuptools.dist:check_requirements
eager_resources = setuptools.dist:assert_string_list
include_package_data = setuptools.dist:assert_bool
packages = setuptools.dist:check_packages
entry_points = setuptools.dist:check_entry_points
zip_safe = setuptools.dist:assert_bool
tests_require = setuptools.dist:check_requirements
convert_2to3_doctests = setuptools.dist:assert_string_list
test_loader = setuptools.dist:check_importable
[setuptools.file_finders]
svn_cvs = setuptools.command.sdist:_default_revctrl
[egg_info.writers]
top_level.txt = setuptools.command.egg_info:write_toplevel_names
PKG-INFO = setuptools.command.egg_info:write_pkg_info
eager_resources.txt = setuptools.command.egg_info:overwrite_arg
namespace_packages.txt = setuptools.command.egg_info:overwrite_arg
depends.txt = setuptools.command.egg_info:warn_depends_obsolete
dependency_links.txt = setuptools.command.egg_info:overwrite_arg
entry_points.txt = setuptools.command.egg_info:write_entries
requires.txt = setuptools.command.egg_info:write_requirements
[distutils.commands]
test = setuptools.command.test:test
bdist_wininst = setuptools.command.bdist_wininst:bdist_wininst
alias = setuptools.command.alias:alias
sdist = setuptools.command.sdist:sdist
develop = setuptools.command.develop:develop
bdist_egg = setuptools.command.bdist_egg:bdist_egg
setopt = setuptools.command.setopt:setopt
egg_info = setuptools.command.egg_info:egg_info
build_ext = setuptools.command.build_ext:build_ext
upload_docs = setuptools.command.upload_docs:upload_docs
easy_install = setuptools.command.easy_install:easy_install
install = setuptools.command.install:install
install_egg_info = setuptools.command.install_egg_info:install_egg_info
bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm
install_lib = setuptools.command.install_lib:install_lib
rotate = setuptools.command.rotate:rotate
saveopts = setuptools.command.saveopts:saveopts
install_scripts = setuptools.command.install_scripts:install_scripts
build_py = setuptools.command.build_py:build_py
register = setuptools.command.register:register
[setuptools.installation]
eggsecutable = setuptools.command.easy_install:bootstrap
[console_scripts]
easy_install = setuptools.command.easy_install:main
easy_install-3.3 = setuptools.command.easy_install:main
[distutils.setup_keywords]
use_2to3 = setuptools.dist:assert_bool
namespace_packages = setuptools.dist:check_nsp
package_data = setuptools.dist:check_package_data
use_2to3_exclude_fixers = setuptools.dist:assert_string_list
dependency_links = setuptools.dist:assert_string_list
use_2to3_fixers = setuptools.dist:assert_string_list
test_suite = setuptools.dist:check_test_suite
exclude_package_data = setuptools.dist:check_package_data
extras_require = setuptools.dist:check_extras
install_requires = setuptools.dist:check_requirements
eager_resources = setuptools.dist:assert_string_list
include_package_data = setuptools.dist:assert_bool
packages = setuptools.dist:check_packages
entry_points = setuptools.dist:check_entry_points
zip_safe = setuptools.dist:assert_bool
tests_require = setuptools.dist:check_requirements
convert_2to3_doctests = setuptools.dist:assert_string_list
test_loader = setuptools.dist:check_importable
[setuptools.file_finders]
svn_cvs = setuptools.command.sdist:_default_revctrl
[egg_info.writers]
top_level.txt = setuptools.command.egg_info:write_toplevel_names
PKG-INFO = setuptools.command.egg_info:write_pkg_info
eager_resources.txt = setuptools.command.egg_info:overwrite_arg
namespace_packages.txt = setuptools.command.egg_info:overwrite_arg
depends.txt = setuptools.command.egg_info:warn_depends_obsolete
dependency_links.txt = setuptools.command.egg_info:overwrite_arg
entry_points.txt = setuptools.command.egg_info:write_entries
requires.txt = setuptools.command.egg_info:write_requirements
[distutils.commands]
test = setuptools.command.test:test
bdist_wininst = setuptools.command.bdist_wininst:bdist_wininst
alias = setuptools.command.alias:alias
sdist = setuptools.command.sdist:sdist
develop = setuptools.command.develop:develop
bdist_egg = setuptools.command.bdist_egg:bdist_egg
setopt = setuptools.command.setopt:setopt
egg_info = setuptools.command.egg_info:egg_info
build_ext = setuptools.command.build_ext:build_ext
upload_docs = setuptools.command.upload_docs:upload_docs
easy_install = setuptools.command.easy_install:easy_install
install = setuptools.command.install:install
install_egg_info = setuptools.command.install_egg_info:install_egg_info
bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm
install_lib = setuptools.command.install_lib:install_lib
rotate = setuptools.command.rotate:rotate
saveopts = setuptools.command.saveopts:saveopts
install_scripts = setuptools.command.install_scripts:install_scripts
build_py = setuptools.command.build_py:build_py
register = setuptools.command.register:register
[ssl:sys_platform=='win32']
wincertstore==0.1
[ssl:python_version in '2.4, 2.5']
ssl==1.16
[ssl:sys_platform=='win32' and python_version=='2.4']
ctypes==1.0.2
......@@ -9,5 +9,5 @@ ctypes==1.0.2
[certs]
certifi==0.0.8
[ssl:python_version in '2.4, 2.5']
ssl==1.16
\ No newline at end of file
[ssl:sys_platform=='win32']
wincertstore==0.1
\ No newline at end of file
This diff is collapsed.
......@@ -48,6 +48,27 @@ class TestEggInfo(unittest.TestCase):
rev = egg_info.egg_info.get_svn_revision()
self.assertEqual(rev, '89000')
def test_version_10_format_legacy_parser(self):
"""
"""
path_variable = None
for env in os.environ:
if env.lower() == 'path':
path_variable = env
if path_variable is None:
self.skipTest('Cannot figure out how to modify path')
old_path = os.environ[path_variable]
os.environ[path_variable] = ''
try:
self._write_entries(ENTRIES_V10)
rev = egg_info.egg_info.get_svn_revision()
finally:
os.environ[path_variable] = old_path
self.assertEqual(rev, '89000')
def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment