[Erp5-report] r17101 - /erp5/trunk/products/ERP5/tests/testCalendar.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 22 18:06:15 CEST 2007


Author: romain
Date: Mon Oct 22 18:06:15 2007
New Revision: 17101

URL: http://svn.erp5.org?rev=17101&view=rev
Log:
Remove useless if.

Modified:
    erp5/trunk/products/ERP5/tests/testCalendar.py

Modified: erp5/trunk/products/ERP5/tests/testCalendar.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testCalendar.py?rev=17101&r1=17100&r2=17101&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testCalendar.py (original)
+++ erp5/trunk/products/ERP5/tests/testCalendar.py Mon Oct 22 18:06:15 2007
@@ -737,11 +737,8 @@
     sequence_list.addSequenceString(sequence_string)
     sequence_list.play(self)
 
-if __name__ == '__main__':
-  framework()
-else:
-  import unittest
-  def test_suite():
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.makeSuite(TestCalendar))
-    return suite
+import unittest
+def test_suite():
+  suite = unittest.TestSuite()
+  suite.addTest(unittest.makeSuite(TestCalendar))
+  return suite




More information about the Erp5-report mailing list