[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/test.py give this module a dummy test_suite() function to keep it from complaining

Fred L. Drake, Jr. fred at zope.com
Wed May 26 17:17:50 EDT 2004


Log message for revision 25031:
give this module a dummy test_suite() function to keep it from complaining
about itself



-=-
Modified: Zope3/trunk/src/zope/app/tests/test.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test.py	2004-05-26 20:53:45 UTC (rev 25030)
+++ Zope3/trunk/src/zope/app/tests/test.py	2004-05-26 21:17:49 UTC (rev 25031)
@@ -1109,5 +1109,11 @@
             raise
 
 
+def test_suite():
+    """Return an empty test suite to avoid complaints about this
+    module not having a 'test_suite' attribute."""
+    return unittest.TestSuite()
+
+
 if __name__ == "__main__":
     process_args()




More information about the Zope3-Checkins mailing list