##// END OF EJS Templates
Override makeTest to correctly support path/to/test.py:test_function syntax....
Fernando Perez -
Show More
@@ -806,6 +806,23 b' class IPythonDoctest(ExtensionDoctest):'
806 806 name = 'ipdoctest' # call nosetests with --with-ipdoctest
807 807 enabled = True
808 808
809 def makeTest(self, obj, parent):
810 """Look for doctests in the given object, which will be a
811 function, method or class.
812 """
813 # always use whitespace and ellipsis options
814 optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
815
816 doctests = self.finder.find(obj, module=getmodule(parent))
817 if doctests:
818 for test in doctests:
819 if len(test.examples) == 0:
820 continue
821
822 yield DocTestCase(test, obj=obj,
823 optionflags=optionflags,
824 checker=self.checker)
825
809 826 def configure(self, options, config):
810 827
811 828 Plugin.configure(self, options, config)
General Comments 0
You need to be logged in to leave comments. Login now