[Zope3-checkins] SVN: Zope3/branches/3.2/ Make zopetest insert rather than append the library path

Brian Sutherland jinty at web.de
Tue Dec 27 11:59:32 EST 2005


Log message for revision 41044:
  Make zopetest insert rather than append the library path
  (fix spurious test failures from packages in site-packages)
  

Changed:
  U   Zope3/branches/3.2/doc/CHANGES.txt
  U   Zope3/branches/3.2/releases/Zope/zopetest

-=-
Modified: Zope3/branches/3.2/doc/CHANGES.txt
===================================================================
--- Zope3/branches/3.2/doc/CHANGES.txt	2005-12-27 10:41:50 UTC (rev 41043)
+++ Zope3/branches/3.2/doc/CHANGES.txt	2005-12-27 16:59:31 UTC (rev 41044)
@@ -6,6 +6,13 @@
 
   For information on future releases, see ROADMAP.txt.
 
+  since Zope 3.2.0b2
+
+    Bug Fixes
+
+      - Make zopetest insert rather than append the library path
+        (fix spurious test failures from packages in site-packages)
+
   Zope 3.2.0b2
 
     New features

Modified: Zope3/branches/3.2/releases/Zope/zopetest
===================================================================
--- Zope3/branches/3.2/releases/Zope/zopetest	2005-12-27 10:41:50 UTC (rev 41043)
+++ Zope3/branches/3.2/releases/Zope/zopetest	2005-12-27 16:59:31 UTC (rev 41044)
@@ -25,7 +25,7 @@
     lib = os.path.join(here, "Lib", "site-packages")
 else:
     lib = os.path.join(here, "lib", "python")
-sys.path.append(lib)
+sys.path.insert(0, lib) # put at beginning to avoid one in site_packages
 
 from zope.testing import testrunner
 



More information about the Zope3-Checkins mailing list