[issue12790] doctest.testmod does not run tests in functools.partial functions

2019-03-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: functools.partial returns a partial object and detecting partials is not handled inside the finder when given a module. Perhaps partials could be handled as a special case to detect tests in them? diff --git a/Lib/doctest.py b/Lib/doctest.py index

[issue12790] doctest.testmod does not run tests in functools.partial functions

2019-02-24 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12790] doctest.testmod does not run tests in functools.partial functions

2015-11-03 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +John.Mark.Vandenberg ___ Python tracker ___ ___

[issue12790] doctest.testmod does not run tests in functools.partial functions

2014-06-28 Thread Mark Lawrence
Mark Lawrence added the comment: @Tim is this something you could take a look at please? -- nosy: +BreamoreBoy, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12790 ___

[issue12790] doctest.testmod does not run tests in functools.partial functions

2011-11-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12790 ___

[issue12790] doctest.testmod does not run tests in functools.partial functions

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12790 ___ ___ Python-bugs-list

[issue12790] doctest.testmod does not run tests in functools.partial functions

2011-08-19 Thread Steven D'Aprano
New submission from Steven D'Aprano steve+pyt...@pearwood.info: Functions with docstrings which were created with partial are not run by doctest.testmod(). See the test script, which prints: Expected 1 failure from 2 tests, but got 0 from 0. -- files: partial_doctest.py messages: