[Checkins] SVN: manuel/trunk/ fix a SyntaxError when running the tests under Python 2.5

Benji York benji at zope.com
Fri Mar 12 17:36:27 EST 2010


Log message for revision 109937:
  fix a SyntaxError when running the tests under Python 2.5
  

Changed:
  U   manuel/trunk/CHANGES.txt
  U   manuel/trunk/src/manuel/tests.py

-=-
Modified: manuel/trunk/CHANGES.txt
===================================================================
--- manuel/trunk/CHANGES.txt	2010-03-12 19:49:32 UTC (rev 109936)
+++ manuel/trunk/CHANGES.txt	2010-03-12 22:36:27 UTC (rev 109937)
@@ -1,6 +1,12 @@
 CHANGES
 =======
 
+1.0.6 (unreleased)
+------------------
+
+- fix a SyntaxError when running the tests under Python 2.5
+
+
 1.0.5 (2010-01-29)
 ------------------
 

Modified: manuel/trunk/src/manuel/tests.py
===================================================================
--- manuel/trunk/src/manuel/tests.py	2010-03-12 19:49:32 UTC (rev 109936)
+++ manuel/trunk/src/manuel/tests.py	2010-03-12 22:36:27 UTC (rev 109937)
@@ -27,8 +27,10 @@
     m += manuel.doctest.Manuel(optionflags=optionflags, checker=checker)
     m += manuel.codeblock.Manuel()
     m += manuel.capture.Manuel()
-    return manuel.testing.TestSuite(m, *tests,
-        globs={'path_to_test': os.path.join(here, 'bugs.txt')})
+    # The apparently redundant "**dict()" is to make this code compatible with
+    # Python 2.5 -- it would generate a SyntaxError otherwise.
+    return manuel.testing.TestSuite(m, *tests, **dict(
+        globs={'path_to_test': os.path.join(here, 'bugs.txt')}))
 
 
 if __name__ == '__main__':



More information about the checkins mailing list