[Zope3-checkins] SVN: Zope3/trunk/releases/Zope/zopetest Prevent tests from mistakenly using a zope package installed in site_packages.

Brian Sutherland jinty at web.de
Mon Dec 12 15:42:19 EST 2005


Log message for revision 40753:
  Prevent tests from mistakenly using a zope package installed in site_packages.

Changed:
  U   Zope3/trunk/releases/Zope/zopetest

-=-
Modified: Zope3/trunk/releases/Zope/zopetest
===================================================================
--- Zope3/trunk/releases/Zope/zopetest	2005-12-12 20:00:57 UTC (rev 40752)
+++ Zope3/trunk/releases/Zope/zopetest	2005-12-12 20:42:18 UTC (rev 40753)
@@ -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