[Checkins] SVN: zope.security/trunk/ Normalize test_suite() layout.

Tres Seaver cvs-admin at zope.org
Sun Dec 23 20:54:07 UTC 2012


Log message for revision 128872:
  Normalize test_suite() layout.

Changed:
  _U  zope.security/trunk/
  U   zope.security/trunk/src/zope/security/tests/test_protectclass.py

-=-
Modified: zope.security/trunk/src/zope/security/tests/test_protectclass.py
===================================================================
--- zope.security/trunk/src/zope/security/tests/test_protectclass.py	2012-12-23 20:54:07 UTC (rev 128871)
+++ zope.security/trunk/src/zope/security/tests/test_protectclass.py	2012-12-23 20:54:07 UTC (rev 128872)
@@ -137,8 +137,6 @@
         self.assertSetattrState(module, m1P=P1, m2P=P2, m3P=P2)
 
 def test_suite():
-    loader=unittest.TestLoader()
-    return loader.loadTestsFromTestCase(Test)
-
-if __name__=='__main__':
-    unittest.TextTestRunner().run(test_suite())
+    return unittest.TestSuite((
+        unittest.makeSuite(Test),
+    ))



More information about the checkins mailing list