[Zope3-checkins] SVN: zdaemon/branches/py3/setup.py Make setup.py test find the tests.

Marius Gedminas cvs-admin at zope.org
Wed Feb 13 14:29:53 UTC 2013


Log message for revision 129327:
  Make setup.py test find the tests.
  
  zope.testrunner doesn't recurse into subdirectories without __init__.py, such
  as ./src.
  
  

Changed:
  U   zdaemon/branches/py3/setup.py

-=-
Modified: zdaemon/branches/py3/setup.py
===================================================================
--- zdaemon/branches/py3/setup.py	2013-02-13 14:14:00 UTC (rev 129326)
+++ zdaemon/branches/py3/setup.py	2013-02-13 14:29:53 UTC (rev 129327)
@@ -35,7 +35,7 @@
     # test suites we've put under ourselves
     import zope.testrunner.find
     import zope.testrunner.options
-    here = os.path.abspath(os.path.dirname(sys.argv[0]))
+    here = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))
     args = sys.argv[:]
     defaults = ["--test-path", here]
     options = zope.testrunner.options.get_options(args, defaults)



More information about the Zope3-Checkins mailing list