Raymond Hettinger
f93f3032c6
Stronger tests for combinatoric relationships.
2009-01-27 09:52:35 +00:00
Nick Coghlan
68060013ea
Issue #4197 : Fix the remaining part of the doctest-in-zipfile problem by giving linecache access to the module globals when available
2008-12-15 11:41:05 +00:00
Skip Montanaro
7fb29797e3
patch from issue 1108
2008-11-19 03:35:41 +00:00
Georg Brandl
1b4758d276
#2767 : don't clear globs in run() call, since they could be needed in tearDown,
...
which clears them at the end.
2008-05-12 17:04:10 +00:00
Georg Brandl
45141d0057
#2766 : remove code without effect.
2008-05-12 17:01:58 +00:00
Raymond Hettinger
fff4e6e171
Doctest results return a named tuple for readability
2008-01-11 01:25:54 +00:00
Alexandre Vassalotti
d8a8c7d8d7
Fix issue #1530 .
...
Return an error exit status if not all tests passes.
2007-12-08 04:49:22 +00:00
Christian Heimes
c756d00cf2
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
2007-11-27 21:34:01 +00:00
Skip Montanaro
58a6f446db
back in these go - thanks to Titus Brown for the fix
2007-11-24 14:30:47 +00:00
Skip Montanaro
d3a1bdf4d9
revert change that breaks test_doctest (which I forgot to run - sorry)
2007-11-24 04:29:08 +00:00
Skip Montanaro
6d7914bf22
Make trace and doctest play nice together (issue 1429818). Will backport.
2007-11-23 17:08:35 +00:00
Brett Cannon
43e53f85b6
doctest assumed that a package's __loader__.get_data() method used universal
...
newlines; it doesn't. To rectify this the string returned replaces all
instances of os.linesep with '\n' to fake universal newline support.
Backport candidate.
2007-11-21 00:47:36 +00:00
Georg Brandl
cff1ae3a2f
Small nit, found by Neal.
2007-03-06 18:21:32 +00:00
Georg Brandl
ff432e6f4a
Patch #1663234 : you can now run doctest on test files and modules
...
using "python -m doctest [-v] filename ...".
2007-03-06 13:37:45 +00:00
Neal Norwitz
d219e7f986
Fix a couple of typos.
2006-08-29 05:40:58 +00:00
Tim Peters
6f6814706e
Bug #1529297 : The rewrite of doctest for Python 2.4 unintentionally
...
lost that tests are sorted by name before being run. ``DocTestFinder``
has been changed to sort the list of tests it returns.
2006-07-27 23:44:37 +00:00
Neal Norwitz
052cbcf635
Remove unused import
2006-06-12 03:05:03 +00:00
Tim Peters
bf0400abe9
Remove doctest.testmod's deprecated (in 2.4) isprivate
...
argument. A lot of hair went into supporting that!
2006-06-05 01:43:03 +00:00
Tim Peters
27c70598a8
Whitespace normalization.
2006-05-30 02:26:46 +00:00
Armin Rigo
a3f092751a
("Forward-port" of r46506)
...
Remove various dependencies on dictionary order in the standard library
tests, and one (clearly an oversight, potentially critical) in the
standard library itself - base64.py.
Remaining open issues:
* test_extcall is an output test, messy to make robust
* tarfile.py has a potential bug here, but I'm not familiar
enough with this code. Filed in as SF bug #1496501 .
* urllib2.HTTPPasswordMgr() returns a random result if there is more
than one matching root path. I'm asking python-dev for
clarification...
2006-05-28 19:13:17 +00:00
George Yoshida
f3c65de460
Patch #1080727 : add "encoding" parameter to doctest.DocFileSuite
...
Contributed by Bjorn Tillenius.
2006-05-28 16:39:09 +00:00
Georg Brandl
195648000c
Patch #721464 : pdb.Pdb instances can now be given explicit stdin and
...
stdout arguments, making it possible to redirect input and output
for remote debugging.
2006-05-10 17:13:20 +00:00
Tim Peters
ad2ef33245
Variant of patch #1478292 . doctest.register_optionflag(name)
...
shouldn't create a new flag when `name` is already the name of
an option flag.
2006-05-10 02:43:01 +00:00
Tim Peters
711bf30b89
Patch #1475231 : add a new SKIP doctest option, thanks to
...
Edward Loper.
2006-04-25 03:31:36 +00:00
Phillip J. Eby
4703211080
Updated the warnings, linecache, inspect, traceback, site, and doctest modules
...
to work correctly with modules imported from zipfiles or via other PEP 302
__loader__ objects. Tests and doc updates are included.
2006-04-11 01:07:43 +00:00