[Checkins] SVN: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/test normalize name of python executable

Jan-Wijbrand Kolman janwijbrand at gmail.com
Tue Oct 26 05:39:14 EDT 2010


Log message for revision 117881:
  normalize name of python executable

Changed:
  U   z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/testing.py
  U   z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/tests.py

-=-
Modified: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/testing.py
===================================================================
--- z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/testing.py	2010-10-26 08:28:10 UTC (rev 117880)
+++ z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/testing.py	2010-10-26 09:39:13 UTC (rev 117881)
@@ -8,12 +8,15 @@
     re.compile('(\n?)-  ([a-zA-Z0-9_.-]+)-script.py\n-  \\2.exe\n'),
     '\\1-  \\2\n')
 
-# Distribute does not result in a setuptools compattest binary, so filter that
-# out.
+# Distribute does not result in a setuptools compattest binary, so filter
+# that out.
 normalize_setuptools = (
     re.compile('-  compattest-setuptools'),
     '')
 
+# On windows and OS X the name of the python executable starts with a
+# capital 'P'. On linux it does not.
+python_case_normalizer = (re.compile('[pP]ython'), 'python')
 
 def DocFileSuite(*args, **kw):
     def setUp(test):
@@ -42,6 +45,7 @@
         zc.buildout.testing.normalize_path,
         normalize_script,
         normalize_setuptools,
+        python_case_normalizer,
         ])
 
     return doctest.DocFileSuite(*args, **kw)

Modified: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/tests.py
===================================================================
--- z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/tests.py	2010-10-26 08:28:10 UTC (rev 117880)
+++ z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/tests.py	2010-10-26 09:39:13 UTC (rev 117881)
@@ -1,6 +1,7 @@
+import re
 import z3c.recipe.compattest.testing
+from zope.testing import renormalizing
 
-
 def test_suite():
     return z3c.recipe.compattest.testing.DocFileSuite(
         'README.txt', 'runner.txt')



More information about the checkins mailing list