[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_directives.py:1.9
Jeremy Hylton
jeremy@zope.com
Thu, 26 Jun 2003 15:35:03 -0400
Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv1648
Modified Files:
test_directives.py
Log Message:
Simplify test_suite().
=== Zope3/src/zope/app/component/tests/test_directives.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.8 Sat Jun 7 02:37:21 2003
+++ Zope3/src/zope/app/component/tests/test_directives.py Thu Jun 26 15:35:02 2003
@@ -494,7 +494,7 @@
def test_suite():
- loader=unittest.TestLoader()
- return loader.loadTestsFromTestCase(Test)
-if __name__=='__main__':
+ return unittest.makeSuite(Test)
+
+if __name__ == "__main__":
unittest.TextTestRunner().run(test_suite())