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
[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