[pypy-svn] r15659 - pypy/dist/lib-python/modified-2.4.1/test

arigo at codespeak.net arigo at codespeak.net
Fri Aug 5 11:46:31 CEST 2005


Author: arigo
Date: Fri Aug  5 11:46:27 2005
New Revision: 15659

Added:
   pypy/dist/lib-python/modified-2.4.1/test/test_optparse.py
      - copied, changed from r15656, pypy/dist/lib-python/2.4.1/test/test_optparse.py
Log:
test_optparse depended on dictionary key order.


Copied: pypy/dist/lib-python/modified-2.4.1/test/test_optparse.py (from r15656, pypy/dist/lib-python/2.4.1/test/test_optparse.py)
==============================================================================
--- pypy/dist/lib-python/2.4.1/test/test_optparse.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_optparse.py	Fri Aug  5 11:46:27 2005
@@ -211,9 +211,11 @@
             ["---"])
 
     def test_attr_invalid(self):
+        d = {'foo': None, 'bar': None}
+        msg = ', '.join(d.keys())
         self.assertOptionError(
-            "option -b: invalid keyword arguments: foo, bar",
-            ["-b"], {'foo': None, 'bar': None})
+            "option -b: invalid keyword arguments: %s" % msg,
+            ["-b"], d)
 
     def test_action_invalid(self):
         self.assertOptionError(



More information about the Pypy-commit mailing list