[TIP] DocFileSuite vs DocTestSuite for module files

Chris Jerdonek chris.jerdonek at gmail.com
Mon Apr 23 07:08:36 PDT 2012


I have a simple question re: doctest.  If I'd like to programmatically
create doctests from a module given the path to the module, is there
any advantage to importing the module first (and then calling
doctest.DocTestSuite()), or is creating a doctest.DocFileSuite() from
the path just as good?

Thanks,
--Chris



More information about the testing-in-python mailing list