Re: unittest can not use function name 'test' ?

2005-11-21 Thread [EMAIL PROTECTED]
Thanks Fredrik... pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest can not use function name 'test' ?

2005-11-21 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I found something strange in my unittest : > This code is ok (will report error ): > > class MyTest1(unittest.TestCase): > > def runTest(self): > self.assertEqual(2,3) > pass > > if __name__ == '__main__': > unittest.main() > > But if I add a func

unittest can not use function name 'test' ?

2005-11-21 Thread [EMAIL PROTECTED]
Hello I found something strange in my unittest : This code is ok (will report error ): class MyTest1(unittest.TestCase): def runTest(self): self.assertEqual(2,3) pass if __name__ == '__main__': unittest.main() But if I add a function with the first name is 'test' it fa