[lxml-dev] unittest.main()

Ian Bicking ianb at colorstudy.com
Tue May 29 05:37:13 CEST 2007


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__

-- 
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org
             | Write code, do good | http://topp.openplans.org/careers


More information about the lxml-dev mailing list