[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner/__init__.py Allow people to try out the test runner with

Marius Gedminas marius at pov.lt
Fri Aug 1 07:43:30 EDT 2008


Log message for revision 89118:
  Allow people to try out the test runner with
  
    python -m zope.testing.testrunner --test-path .
  
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner/__init__.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner/__init__.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/__init__.py	2008-08-01 09:52:16 UTC (rev 89117)
+++ zope.testing/trunk/src/zope/testing/testrunner/__init__.py	2008-08-01 11:43:28 UTC (rev 89118)
@@ -47,3 +47,8 @@
 
 # Install 2.4 TestSuite __iter__ into earlier versions
 ###############################################################################
+
+if __name__ == '__main__':
+    # allow people to try out the test runner with
+    # python -m zope.testing.testrunner --test-path .
+    run()



More information about the Zope3-Checkins mailing list