summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* _do_a_fancy_diff(): Pay no attention to the ellipses behind the curtain.Tim Peters2004-08-261-7/+11
| | | | | | | | | 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.
* Fine tune a word.Tim Peters2004-08-261-1/+1
|
* Thinko repair.Tim Peters2004-08-261-1/+1
|
* Reorg of exception section. Now that there are fewer details needingTim Peters2004-08-261-22/+45
| | | | | explanation, it's easier to push the remaining insufferably anal details into a "fine print" section at the bottom.
* Remove unnecessary line.Raymond Hettinger2004-08-261-1/+0
|
* Small wording fixups.Raymond Hettinger2004-08-261-5/+5
|
* Changed OutputChecker.output_difference to expect an Example object,Edward Loper2004-08-261-6/+6
| | | | | | 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.
* Added REPORT_ONLY_FIRST_FAILURE flag, which supresses output after theEdward Loper2004-08-263-12/+116
| | | | first failing example in each test.
* When building with --disable-toolbox-glue under Darwin, skip building anyBrett Cannon2004-08-262-2/+7
| | | | | | | | 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.
* Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; andEdward Loper2004-08-263-28/+28
| | | | | | | 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).
* Shortened diff output for unified & context diffsEdward Loper2004-08-262-12/+8
|
* - Changed the output of report_start() and report_unexpected_exception()Edward Loper2004-08-262-58/+64
| | | | | | | 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
* Restored half of a \versionadded only half of which should have beenTim Peters2004-08-261-0/+3
| | | | deleted.
* Patch #1015012. Improve markup and punctuation in libsocket.texDave Cole2004-08-262-5/+5
|
* Patch #1014930. Expose current parse location to XMLParser.Dave Cole2004-08-264-0/+76
|
* Minor improvements to the template code.Raymond Hettinger2004-08-261-18/+15
| | | | | | | | * 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.
* Added an "exc_msg" attribute to Example (containing the expectedEdward Loper2004-08-262-59/+139
| | | | | | | | | 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.
* Re-generate configure with recent configure.in change (for patch #1016224).Trent Mick2004-08-251-219/+431
|
* Apply patch #1016224: configure.in change to allow build of _bsddb module onTrent Mick2004-08-251-3/+8
| | | | AIX 5.1.
* Only recognize the expected output as an exception if it *starts* withEdward Loper2004-08-253-54/+55
| | | | | | | | 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.
* Fix docstring typo.Raymond Hettinger2004-08-251-1/+1
|
* Bypass peepholing of code with lineno tables having intervals >= 255.Raymond Hettinger2004-08-251-4/+8
| | | | | | | | 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.
* Fix typo in comment and add clarification.Raymond Hettinger2004-08-251-1/+2
|
* clean up markup for --executable descriptionFred Drake2004-08-251-2/+3
|
* Add various itemsAndrew M. Kuchling2004-08-251-10/+102
|
* Patch #970015: Replace - by _ in version and release.Martin v. Löwis2004-08-252-3/+4
|
* Patch #970019: Include version and release in the BuildRoot.Martin v. Löwis2004-08-252-1/+3
|
* Patch #736857, #736859: Add -e option to build_scripts.Martin v. Löwis2004-08-254-3/+16
|
* Patch #798244: More urllib2 examples.Martin v. Löwis2004-08-251-1/+62
|
* Patch #1014992: Never return more than a line from readline.Martin v. Löwis2004-08-251-3/+1
| | | | Will backport to 2.3.
* Patch #1015021: Stop claiming that coerce can return None.Martin v. Löwis2004-08-252-5/+5
| | | | Will backport to 2.3.
* Back out 1.289, which breaks platforms needing addrinfo.h, andMartin v. Löwis2004-08-251-31/+0
| | | | | 1.293, 1.298, and 1.300, which have tried to fix this for specific platforms.
* Simplify chains of conditional jumps.Raymond Hettinger2004-08-251-2/+25
| | | | (Suggested by Neal Norwitz.)
* Ah whoops, we didn't turn string into a package (thanks Neal!)Barry Warsaw2004-08-251-12/+1
|
* PEP 292 classes Template and SafeTemplate are added to the string module.Barry Warsaw2004-08-257-93/+329
| | | | | | | | This patch includes test cases and documentation updates, as well as NEWS file updates. This patch also updates the sre modules so that they don't import the string module, breaking direct circular imports.
* Stop producing or using OverflowWarning. PEP 237 thought this wouldTim Peters2004-08-258-45/+25
| | | | | | | happen in 2.3, but nobody noticed it still was getting generated (the warning was disabled by default). OverflowWarning and PyExc_OverflowWarning should be removed for 2.5, and left notes all over saying so.
* SF #1015517, get readline to compile with older compilersNeal Norwitz2004-08-251-3/+4
|
* Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),Mark Hammond2004-08-242-5/+7
| | | | | and a test case. When booting a new thread, use the PyGILState API to manage the GIL.
* Keep option parser from gobbling up the filename to be profiled and theSkip Montanaro2004-08-241-0/+1
| | | | | flags it accepts. It's too late to change optparse's default behavior now, but I find the default setting of allow_interspersed_args very weird.
* Fixed bug in DatagramHandler.send()Vinay Sajip2004-08-241-0/+2
|
* Incorporate review comments courtesy of Neal Norwitz:Raymond Hettinger2004-08-241-6/+8
| | | | | | | | | * Perform the code length check earlier. * Eliminate the extra PyMem_Free() upon hitting an EXTENDED_ARG. * Assert that the NOP count used in jump retargeting matches the NOPs eliminated in the final step. * Add an XXX note to indicate that more work is being to done to handle linenotab with intervals > 255.
* SF Patch #1013667: Cleanup Peepholer OutputRaymond Hettinger2004-08-234-38/+206
| | | | | | | | | * Make a pass to eliminate NOPs. Produce code that is more readable, more compact, and a tiny bit faster. Makes the peepholer more flexible in the scope of allowable transformations. * With Guido's okay, bumped up the magic number so that this patch gets widely exercised before the alpha goes out.
* Add Nick Coghlan for his patch solving an issue with joining stringRaymond Hettinger2004-08-231-0/+1
| | | | subclasses.
* SF Patch #1007087: Return new string for single subclass joins (Bug #1001011)Raymond Hettinger2004-08-232-12/+31
| | | | | | | (Patch contributed by Nick Coghlan.) Now joining string subtypes will always return a string. Formerly, if there were only one item, it was returned unchanged.
* The attempt to shut up deprecation warnings for doctest's own use ofTim Peters2004-08-231-2/+5
| | | | | is_private in its tests failed if doctest.py was run directly. Now it works.
* test_DocTestFinder(): This test failed when test_doctest was runTim Peters2004-08-231-2/+5
| | | | | directly, due to assuming a filename specific to running tests "the normal way". +ELLIPSIS to the rescue!
* Moved some test cases from doctest to test_doctest.Tim Peters2004-08-232-118/+126
|
* Misc cleanups.Tim Peters2004-08-231-28/+26
|
* debug_script(): I changed this in haste before to take out the use ofTim Peters2004-08-231-15/+22
| | | | | | | NamedTemporaryFile (which can't work for this function's purposes on Windows). Leaving temp files behind wasn't a great idea either, though, so try to clean up. At least the test suite no longer leaves any of these guys behind now.
* Patch #1014237: Consistently return booleans throughout.Martin v. Löwis2004-08-231-10/+10
|