[Python-checkins] distutils2: Update test to account for recent Python bugfix.

eric.araujo python-checkins at python.org
Mon Nov 14 15:24:07 CET 2011


http://hg.python.org/distutils2/rev/529dbfb375cd
changeset: 1235:529dbfb375cd
user: Éric Araujo <merwok at netwok.org>
date: Sat Nov 12 00:39:02 2011 +0100
summary:
 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.
files:
 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
--- a/distutils2/tests/test_pypi_simple.py
+++ b/distutils2/tests/test_pypi_simple.py
@@ -86,7 +86,11 @@
 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
-- 
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /