[lxml-dev] unittest.main()
Sidnei da Silva
sidnei at enfoldsystems.com
Tue May 29 06:02:27 CEST 2007
On 5/29/07, Ian Bicking <ianb at colorstudy.com> wrote:
> I noticed many tests have:
>
> if __name__ == '__main__':
> unittest.main()
>
> But this seems to ignore test_suite(), so it's not really very useful.
> This seems more helpful:
>
> if __name__ == '__main__':
> print 'to test use test.py %s' % __file__
I think you can also do: unittest.main(defaultTest='test_suite') or
something very similar to that.
--
Sidnei da Silva
Enfold Systems http://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
More information about the lxml-dev
mailing list