- 27 Aug, 2004 3 commits
-
-
Edward Loper authored
-
Edward Loper authored
- Improvements to interactive debugging support: - Changed the replacement pdb.set_trace to redirect stdout to the real stdout *only* during interactive debugging; stdout from code continues to go to the fake stdout. - When the interactive debugger gets to the end of an example, automatically continue. - Use a replacement linecache.getlines that will return source lines from doctest examples; this makes the source available to the debugger for interactive debugging. - In test_doctest, use a specialized _FakeOutput class instead of a temporary file to fake stdin for the interactive interpreter.
-
Tim Peters authored
1. u1.join([u2]) is u2 2. Be more careful about C-level int overflow. Since PySequence_Fast() isn't needed to achieve #1, it's not used -- but the code could sure be simpler if it were.
-
- 26 Aug, 2004 23 commits
-
-
Edward Loper authored
and intervening text strings. - Removed DocTestParser.get_program(): use script_from_examples() instead. - Fixed bug in DocTestParser._INDENT_RE - Fixed bug in DocTestParser._min_indent - Moved _want_comment() to the utility function section
-
Walter Dörwald authored
it can be used for str and unicode. Drop the test for "".join([s]) is s because this is an implementation detail (and doesn't work for unicode)
-
Johannes Gijsbers authored
-
Tim Peters authored
actual output into lines created spurious empty lines at the ends of each. Those matched, but the fancy diffs had surprising line counts (1 larger than expected), and tests kept having to slam <BLANKLINE> into the expected output to account for this. Using the splitlines() string method with keepends=True instead accomplishes what was intended directly.
-
Martin v. Löwis authored
-
Tim Peters authored
-
Tim Peters authored
While a fancy diff can be confusing in the presence of ellipses, so far I'm finding (2-0-0) that it's much more a major aid in narrowing down the possibilities when an ellipsis-slinging test fails. So we no longer refuse to do a fancy diff just because of ellipses. This isn't ideal; it's just better.
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
explanation, it's easier to push the remaining insufferably anal details into a "fine print" section at the bottom.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Edward Loper authored
rather than an expected output string. This gives the output_difference method access to more information, such as the indentation of the example, which might be useful.
-
Edward Loper authored
first failing example in each test.
-
Brett Cannon authored
Mac-specific modules. Before all modules were compiled but would fail thanks to a dependence on the code included when Python was built without the compiler flag. Closes bug #991962.
-
Edward Loper authored
NDIFF_DIFF->REPORT_NDIFF. This establishes the naming convention that all reporting options should begin with "REPORT_" (since reporting options are a different class from output comparison options; but they are both set in optionflags).
-
Edward Loper authored
-
Edward Loper authored
to be more consistent with report_failure() - If `want` or `got` is empty, then print "Expected nothing\n" or "Got nothing\n" rather than "Expected:\n" or "Got:\n" - Got rid of _tag_msg
-
Tim Peters authored
deleted.
-
Dave Cole authored
-
Dave Cole authored
-
Raymond Hettinger authored
* Add comment bars segregating this code from the rest. * Improve readability of the re pattern with indentation and comments on the same line. * Replace the groupdict() and get() pair with a direct call to group() which does the same thing.
-
Edward Loper authored
exception message, or None if no exception is expected); and moved exception parsing from DocTestRunner to DocTestParser. This is architecturally cleaner, since it moves all parsing work to DocTestParser; and it should make it easier for code outside DocTestRunner (notably debugging code) to properly handle expected exceptions.
-
- 25 Aug, 2004 14 commits
-
-
Trent Mick authored
-
Trent Mick authored
AIX 5.1.
-
Edward Loper authored
a traceback message. I.e., examples that raise exceptions may no longer generate pre-exception output. This restores the behavior of doctest in python 2.3. The ability to check pre-exception output is being removed because it makes the documentation simpler; and because there are very few use cases for it.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Allows the lineno fixup code to remain simple and not have to deal with multibyte codings. * Add an assertion to that effect. * Remove the XXX comment on the subject.
-
Raymond Hettinger authored
-
Fred Drake authored
-
Andrew M. Kuchling authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
Will backport to 2.3.
-
Martin v. Löwis authored
Will backport to 2.3.
-