- 12 Aug, 2004 2 commits
-
-
Edward Loper authored
modify option flags for a single example; they do not turn options on or off.) - Added "indent" and "options" attributes for Example - Got rid of add_newlines param to DocTestParser._parse_example (it's no longer needed; Example's constructor now takes care of it). - Added some docstrings
-
Edward Loper authored
option flags); and use it to define the existing optionflag constants.
-
- 10 Aug, 2004 8 commits
-
-
Fred Drake authored
-
Fred Drake authored
databases this should be backported to the release23-maint branch
-
Andrew M. Kuchling authored
-
Fred Drake authored
someone should backport to the release23-maint branch
-
Fred Drake authored
-
Fred Drake authored
-
Tim Peters authored
-
Piers Lauder authored
Fix typo in getquotaroot parameter reported by Thierry FLORAC. Also amplify doc string for select to indicate proper way to obtain other responses.
-
- 09 Aug, 2004 23 commits
-
-
Tim Peters authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Tim Peters authored
checkins. Reapplying the latter changes.
-
Edward Loper authored
responsible for parsing the string. - Renamed Parser to DocTestParser - DocTestParser.get_*() now accept the string & name as command-line arguments; the parser's constructor is now empty. - Added DocTestParser.get_doctest() method - Replaced "doctest_factory" argument to DocTestFinder with a "parser" argument (takes a DocTestParser). - Changed _tag_msg to take an indentation string argument.
-
Tim Peters authored
the set_trace fiddling didn't make sense to me, and I ended up reworking that part of the code. We really do want to save and restore pdb.set_trace, so that each dynamically nested level of doctest gets sys.stdout fiddled to what's appropriate for *it*. The only "trick" really needed is that these layers of set_trace wrappers each call the original pdb.set_trace (instead of the current pdb.set_trace).
-
Jason Tishler authored
Add missing PyAPI_FUNC/PyAPI_DATA macros.
-
Andrew M. Kuchling authored
-
Fred Drake authored
- wrap a long line
-
Fred Drake authored
-
Jason Tishler authored
Restore clean building under Cygwin.
-
Jim Fulton authored
-
Dave Cole authored
-
Dave Cole authored
-
Tim Peters authored
to put details in the LaTeX docs instead, and lots of stuff in the module docstring wasn't useful anyway.
-
Tim Peters authored
-
Tim Peters authored
Example.__init__. The constructor now adds trailing newlines when needed, and no longer distinguishes between multi- and single-line cases for source.
-
Tim Peters authored
-
Tim Peters authored
more sense as a callable.
-
Edward Loper authored
rather than a list of triples.
-
Edward Loper authored
into their own class, OutputChecker. - Added optional OutputChecker arguments to DocTestRunner, DocTestCase, DocTestSuite.
-
Edward Loper authored
the string one line at a time. The resulting code is (in my opinion, anyway), much easier to read. In the process, I found and fixed a bug in the orginal parser's line numbering in error messages (it was inconsistant between 0-based and 1-based). Also, check for missing blank lines after the prompt on all prompt lines, not just PS1 lines (test added).
-
Edward Loper authored
-
- 08 Aug, 2004 7 commits
-
-
Brett Cannon authored
variable to void.. Thanks to Sjoerd Mullender for the suggested change.
-
Raymond Hettinger authored
-
Tim Peters authored
raise SyntaxError. test_compiler passes now on WinXP, at least in a release-build non-O run.
-
Tim Peters authored
-
Tim Peters authored
it. Else when this fails, there's no way to tell which file it was chewing on.
-
Tim Peters authored
-
Tim Peters authored
Added XXX comment about why the undocumented PyRange_New() API function is too broken to be worth the considerable pain of repairing. Changed range_new() to stop using PyRange_New(). This fixes a variety of bogus errors. Nothing in the core uses PyRange_New() now. Documented that xrange() is intended to be simple and fast, and that CPython restricts its arguments, and length of its result sequence, to native C longs. Added some tests that failed before the patch, and repaired a test that relied on a bogus OverflowError getting raised.
-