Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Stronger tests for combinatoric relationships. | Raymond Hettinger | 2009-01-27 | 1 | -0/+4 |
| | |||||
* | Issue #4197: Fix the remaining part of the doctest-in-zipfile problem by ↵ | Nick Coghlan | 2008-12-15 | 1 | -3/+13 |
| | | | | giving linecache access to the module globals when available | ||||
* | patch from issue 1108 | Skip Montanaro | 2008-11-19 | 1 | -2/+2 |
| | |||||
* | #2767: don't clear globs in run() call, since they could be needed in tearDown, | Georg Brandl | 2008-05-12 | 1 | -1/+1 |
| | | | | which clears them at the end. | ||||
* | #2766: remove code without effect. | Georg Brandl | 2008-05-12 | 1 | -2/+0 |
| | |||||
* | Doctest results return a named tuple for readability | Raymond Hettinger | 2008-01-11 | 1 | -12/+15 |
| | |||||
* | Fix issue #1530. | Alexandre Vassalotti | 2007-12-08 | 1 | -3/+6 |
| | | | | Return an error exit status if not all tests passes. | ||||
* | Replaced import of the 'new' module with 'types' module and added a ↵ | Christian Heimes | 2007-11-27 | 1 | -4/+4 |
| | | | | deprecation warning to the 'new' module. | ||||
* | back in these go - thanks to Titus Brown for the fix | Skip Montanaro | 2007-11-24 | 1 | -0/+13 |
| | |||||
* | revert change that breaks test_doctest (which I forgot to run - sorry) | Skip Montanaro | 2007-11-24 | 1 | -11/+0 |
| | |||||
* | Make trace and doctest play nice together (issue 1429818). Will backport. | Skip Montanaro | 2007-11-23 | 1 | -0/+11 |
| | |||||
* | doctest assumed that a package's __loader__.get_data() method used universal | Brett Cannon | 2007-11-21 | 1 | -1/+4 |
| | | | | | | | 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. | ||||
* | Small nit, found by Neal. | Georg Brandl | 2007-03-06 | 1 | -2/+2 |
| | |||||
* | Patch #1663234: you can now run doctest on test files and modules | Georg Brandl | 2007-03-06 | 1 | -2/+17 |
| | | | | using "python -m doctest [-v] filename ...". | ||||
* | Fix a couple of typos. | Neal Norwitz | 2006-08-29 | 1 | -2/+2 |
| | |||||
* | Bug #1529297: The rewrite of doctest for Python 2.4 unintentionally | Tim Peters | 2006-07-27 | 1 | -0/+5 |
| | | | | | lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns. | ||||
* | Remove unused import | Neal Norwitz | 2006-06-12 | 1 | -1/+1 |
| | |||||
* | Remove doctest.testmod's deprecated (in 2.4) `isprivate` | Tim Peters | 2006-06-05 | 1 | -76/+9 |
| | | | | argument. A lot of hair went into supporting that! | ||||
* | Whitespace normalization. | Tim Peters | 2006-05-30 | 1 | -3/+3 |
| | |||||
* | ("Forward-port" of r46506) | Armin Rigo | 2006-05-28 | 1 | -5/+6 |
| | | | | | | | | | | | | | | 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... | ||||
* | Patch #1080727: add "encoding" parameter to doctest.DocFileSuite | George Yoshida | 2006-05-28 | 1 | -2/+17 |
| | | | | Contributed by Bjorn Tillenius. | ||||
* | Patch #721464: pdb.Pdb instances can now be given explicit stdin and | Georg Brandl | 2006-05-10 | 1 | -1/+1 |
| | | | | | stdout arguments, making it possible to redirect input and output for remote debugging. | ||||
* | Variant of patch #1478292. doctest.register_optionflag(name) | Tim Peters | 2006-05-10 | 1 | -3/+2 |
| | | | | | shouldn't create a new flag when `name` is already the name of an option flag. | ||||
* | Patch #1475231: add a new SKIP doctest option, thanks to | Tim Peters | 2006-04-25 | 1 | -0/+9 |
| | | | | Edward Loper. | ||||
* | Updated the warnings, linecache, inspect, traceback, site, and doctest modules | Phillip J. Eby | 2006-04-11 | 1 | -11/+15 |
| | | | | | to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included. | ||||
* | Fix test cases for doctest. | Georg Brandl | 2005-06-26 | 1 | -0/+1 |
| | |||||
* | bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able | Georg Brandl | 2005-06-26 | 1 | -1/+2 |
| | |||||
* | SF patch 1167316: doctest.py fails self-test if run directly. | Tim Peters | 2005-03-28 | 1 | -5/+5 |
| | | | | | | Patch by Ilya Sandler. Bugfix candidate. | ||||
* | add __file__ to the globals available for tests loaded via DocFileSuite; | Fred Drake | 2004-12-21 | 1 | -0/+4 |
| | | | | | this is useful for locating supporting data files, just as it is in Python modules | ||||
* | And delete a useless comment. | Tim Peters | 2004-11-08 | 1 | -1/+0 |
| | |||||
* | _OutputRedirectingPdb.trace_dispatch(): Return the base class's | Tim Peters | 2004-11-08 | 1 | -4/+5 |
| | | | | trace_dispatch() result in a more obvious, and more robust way. | ||||
* | test_doctest.py test_pdb_set_trace_nested(): A new test from Jim Fulton | Tim Peters | 2004-11-08 | 1 | -3/+2 |
| | | | | | | | | | showing that doctest's pdb.set_trace() support was dramatically broken. doctest.py _OutputRedirectingPdb.trace_dispatch(): Return a local trace function instead of (implicitly) None. Else interaction with pdb was bizarre, noticing only 'call' events. Amazingly, the existing set_trace() tests didn't care. | ||||
* | Fixed a small bug. doctest didn't handle unicode docstrings containing | Jim Fulton | 2004-10-13 | 1 | -1/+3 |
| | | | | non-ascii characters. | ||||
* | Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter's | Edward Loper | 2004-09-28 | 1 | -79/+1 |
| | | | | | | | | request. Tim says that "correct 'fuzzy' comparison of floats cannot be automated." (The motivation behind adding the new option was verifying interactive examples in Python's latex documentation; several such examples use numbers that don't print consistently on different platforms.) | ||||
* | Added a new NORMALIZE_NUMBERS option, which causes number literals in | Edward Loper | 2004-09-28 | 1 | -1/+79 |
| | | | | | the expected output to match corresponding number literals in the actual output if their values are equal (to ten digits of precision). | ||||
* | - Added a "parser" option to testfile() and DocFileTest(). | Edward Loper | 2004-09-27 | 1 | -5/+12 |
| | |||||
* | Removed debug_script from the public API: no docs, not public. I'm in | Tim Peters | 2004-09-26 | 1 | -1/+0 |
| | | | | | the process of writing docs for the other "missing" debug support functions. | ||||
* | Add set_unittest_reportflags() to the public API. Docs will follow | Tim Peters | 2004-09-26 | 1 | -0/+1 |
| | | | | "soon", after I repair the LaTeX I somehow damaged. | ||||
* | Removed two undocumented unittest support classes, and one undocumented | Tim Peters | 2004-09-26 | 1 | -3/+0 |
| | | | | | unittest support function, from the public interface. If they're not documented, they shouldn't be public. | ||||
* | Removed most of the module docstring. There's too much to explain now, | Tim Peters | 2004-09-25 | 1 | -124/+2 |
| | | | | and the LaTeX docs are in increasingly good shape. | ||||
* | - Minor docstring fixes. | Edward Loper | 2004-09-21 | 1 | -15/+9 |
| | | | | - Simplified code to find names for file-based tests. | ||||
* | Whitespace normalization. | Tim Peters | 2004-09-20 | 1 | -4/+4 |
| | |||||
* | - Added "testfile" function, a simple function for running & verifying | Edward Loper | 2004-09-19 | 1 | -37/+183 |
| | | | | | | | | all examples in a given text file. (analagous to "testmod") - Minor docstring fixes. - Added module_relative parameter to DocTestFile/DocTestSuite, which controls whether paths are module-relative & os-independent, or os-specific. | ||||
* | In DocFileTest: | Edward Loper | 2004-09-18 | 1 | -3/+20 |
| | | | | | | | - Fixed bug in handling of absolute paths. - If run from an interactive session, make paths relative to the directory containing sys.argv[0] (since __main__ doesn't have a __file__ attribute). | ||||
* | exclude_empty: make the default True for DocTestFinder, and introduce it | Tim Peters | 2004-09-13 | 1 | -7/+7 |
| | | | | | | | with default False for testmod(). The real point of introducing this was so that output from doctest.master.summarize() would be the same as in 2.3, and doctest.master in 2.4 is a backward-compatability hack used only by testmod(). | ||||
* | Added new parameter exclude_empty to DocTestFinder.__init__, which | Edward Loper | 2004-09-13 | 1 | -8/+14 |
| | | | | | controls whether tests are included for objects with empty docstrings. Defaults to True, to match the behavior of Python 2.3. | ||||
* | DocTestFinder._find(): for tests derived from a module __test__ global, | Tim Peters | 2004-09-13 | 1 | -1/+1 |
| | | | | | doctest always promised to stick "__test__" in the name. That got broken. Now it's fixed again. | ||||
* | Reluctantly, rehabilitate doctest.master. | Tim Peters | 2004-09-13 | 1 | -9/+26 |
| | |||||
* | Tester.run___test__(): This couldn't possibly work at all. I'm afraid | Tim Peters | 2004-09-12 | 1 | -1/+1 |
| | | | | the "backward compatibility" here was a joke. | ||||
* | Tester.__init__(): this couldn't possibly work when a module argument | Tim Peters | 2004-09-12 | 1 | -1/+1 |
| | | | | was passed. |