diff options
| author | ?ric Araujo <merwok@netwok.org> | 2011-11-12 00:39:02 +0100 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2011-11-12 00:39:02 +0100 |
| commit | 427a1c2e495df95d8b4aea3d0bb7a9c38367dcc4 (patch) | |
| tree | 6c79258711a3268a588f0044e837a15185a666bc | |
| parent | b160fba2c0cbad389abc1bdbc94c82c1a26edfc9 (diff) | |
| download | disutils2-427a1c2e495df95d8b4aea3d0bb7a9c38367dcc4.tar.gz | |
Update test to account for recent Python bugfix.
This does not mean that we can run tests successfully with a Python 2.7
built from its repository: The version that will become 2.7.3 reports
itself as 2.7.2 (except for a ?+? in sys.version, but that?s an
implementation detail). Some tests need access to Python.h and that
isn?t found when running from an uninstalled Python anyway.
| -rw-r--r-- | distutils2/tests/test_pypi_simple.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/distutils2/tests/test_pypi_simple.py b/distutils2/tests/test_pypi_simple.py index a2d8787..ba65abf 100644 --- a/distutils2/tests/test_pypi_simple.py +++ b/distutils2/tests/test_pypi_simple.py @@ -86,7 +86,11 @@ class SimpleCrawlerTestCase(TempdirManager, try: crawler._open_url(url) except Exception, v: - self.assertIn('nonnumeric port', str(v)) + if sys.version_info[:3] < (2, 7, 3): + wanted = 'nonnumeric port' + else: + wanted = 'Download error' + self.assertIn(wanted, str(v)) # issue #160 url = server.full_address |
