[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/ Try a change to see if it fixes either of the brokem buildbots

Gary Poster gary at zope.com
Thu Aug 3 23:35:21 EDT 2006


Log message for revision 69347:
  Try a change to see if it fixes either of the brokem buildbots
  

Changed:
  U   Zope3/trunk/src/zope/component/standalonetests.py
  U   Zope3/trunk/src/zope/component/tests.py

-=-
Modified: Zope3/trunk/src/zope/component/standalonetests.py
===================================================================
--- Zope3/trunk/src/zope/component/standalonetests.py	2006-08-04 02:43:39 UTC (rev 69346)
+++ Zope3/trunk/src/zope/component/standalonetests.py	2006-08-04 03:35:21 UTC (rev 69347)
@@ -3,8 +3,7 @@
 import sys
 
 if __name__ == "__main__":
-    paths = sys.argv.pop().split(':')
-    sys.path.extend(paths)
+    sys.path[:] = sys.argv.pop().split(':')
 
 from zope import interface
 from zope.component.testing import setUp, tearDown
@@ -34,7 +33,6 @@
 
       >>> import zope.component
       >>> zope.component.provideAdapter(Comp, (I1,), I2)
-      >>> res = 0 #zope.component.getAdapter
       >>> adapter = I2(ob)
       >>> adapter.__class__ is Comp
       True

Modified: Zope3/trunk/src/zope/component/tests.py
===================================================================
--- Zope3/trunk/src/zope/component/tests.py	2006-08-04 02:43:39 UTC (rev 69346)
+++ Zope3/trunk/src/zope/component/tests.py	2006-08-04 03:35:21 UTC (rev 69347)
@@ -934,7 +934,7 @@
         import tempfile
         executable = os.path.abspath(sys.executable)
         program = os.path.join(os.path.dirname(__file__), 'standalonetests.py')
-        paths = ':'.join(sys.path)
+        paths = ':'.join(p for p in sys.path if p)
         command = "%(executable)s %(program)s %(paths)s" % {
             'executable': executable, 'program': program, 'paths': paths}
         t = tempfile.TemporaryFile()



More information about the Zope3-Checkins mailing list