[Checkins] SVN: zc.buildout/branches/help-api/src/zc/buildout/tests.py Made a test work with different Python versions.

Godefroid Chapelle gotcha at bubblenet.be
Sun Mar 29 17:23:37 EDT 2009


Log message for revision 98526:
  Made a test work with different Python versions.

Changed:
  U   zc.buildout/branches/help-api/src/zc/buildout/tests.py

-=-
Modified: zc.buildout/branches/help-api/src/zc/buildout/tests.py
===================================================================
--- zc.buildout/branches/help-api/src/zc/buildout/tests.py	2009-03-29 21:23:30 UTC (rev 98525)
+++ zc.buildout/branches/help-api/src/zc/buildout/tests.py	2009-03-29 21:23:37 UTC (rev 98526)
@@ -2843,7 +2843,10 @@
     /sample-buildout/eggs/demo-0.4c1-py2.4.egg/eggrecipedemo.py
     /sample-buildout/eggs/demoneeded-1.2c1-py2.4.egg/eggrecipedemoneeded.py
 
-    >>> ls('eggs', 'demoneeded-1.2c1-py2.4.egg')
+    >>> import os
+    >>> for name in os.listdir('eggs'):
+    ...     if name.startswith('demoneeded'):
+    ...         ls('eggs', name)
     d  EGG-INFO
     -  eggrecipedemoneeded.py
     -  eggrecipedemoneeded.pyc



More information about the Checkins mailing list