summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* [Bug #1011606] Only check file descriptors for exceptional conditions if the ↵Andrew M. Kuchling2004-09-011-4/+10
| | | | fd is readable or writable
* Whitespace normalization.Tim Peters2004-09-013-5/+5
|
* Missed some occurrences of test_mpzAndrew M. Kuchling2004-08-311-3/+0
|
* Remove test output for rotor, xreadlineAndrew M. Kuchling2004-08-312-9/+0
|
* Remove rotor, xreadlines modulesAndrew M. Kuchling2004-08-311-2/+2
|
* Remove test for mpzAndrew M. Kuchling2004-08-311-89/+0
|
* Remove tests for mpz, rotor, xreadlinesAndrew M. Kuchling2004-08-313-84/+0
|
* Remove TERMIOS moduleAndrew M. Kuchling2004-08-311-14/+0
|
* Use multi-line importAndrew M. Kuchling2004-08-317-26/+26
|
* SF patch #1007189, multi-line imports, for instance:Anthony Baxter2004-08-316-83/+159
| | | | | "from blah import (foo, bar baz, bongo)"
* HardwareRandom: Go back to multiplying by 2**-BPF instead of usingTim Peters2004-08-311-2/+3
| | | | | | | | | | ldexp. Both methods are exact, and return the same results. Turns out multiplication is a few (but just a few) percent faster on my box. They're both significantly faster than using struct with a Q format to convert bytes to a 64-bit long (struct.unpack() appears to lose due to the tuple creation/teardown overhead), and calling _hexlify is significantly faster than doing bytes.encode('hex'). So we appear to have hit a local minimum (wrt speed) here.
* Take advantage of the math library's ldexp for assembling a float byRaymond Hettinger2004-08-311-5/+3
| | | | | | | components without division and without roundoff error for properly sized mantissas (i.e. on systems with 53 or more mantissa bits per float). Eliminates the previous implementation's rounding bias as aptly demonstrated by Tim Peters.
* Changed Karatsuba cutoff to match current reality.Tim Peters2004-08-301-1/+1
|
* The distinction between comparison flags and reporting flags isn't uniqueTim Peters2004-08-301-28/+19
| | | | | | | | | | | to unittest, so make it official: new module constants COMPARISON_FLAGS and REPORTING_FLAGS, which are bitmasks or'ing together the relevant individual option flags. set_unittest_reportflags(): Reworked to use REPORTING_FLAGS, and simplified overly complicated flag logic. class FakeModule: Removed this; neither documented nor used.
* Patch #934356: if a module defines __all__, believe that rather than usingJohannes Gijsbers2004-08-301-4/+12
| | | | heuristics for filtering out imported names.
* Whitespace normalization.Johannes Gijsbers2004-08-301-1/+1
|
* Patch #1003640: replace checkline() function parsing with new breakpoint logic:Johannes Gijsbers2004-08-302-45/+51
| | | | | | | | | | | | | 1) When a breakpoint is set via a function name: - the breakpoint gets the lineno of the def statement - a new funcname attribute is attached to the breakpoint 2) bdb.effective() calls new function checkfuncname() to handle: - def statement is executed: don't break. - a first executable line of a function with a breakpoint on the lineno of the def statement is reached: break. This fixes bugs 976878, 926369 and 875404. Thanks Ilya Sandler.
* Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists ↵Johannes Gijsbers2004-08-308-4/+44
| | | | in glob.glob.
* Teach the random module about os.urandom().Raymond Hettinger2004-08-302-8/+164
| | | | | * Use it for seeding when it is available. * Provide an alternate generator based on it.
* Whitespace normalization. test_difflib passes again.Tim Peters2004-08-293-101/+101
|
* Reverting whitespace normalization. test_difflib fails with it -- theTim Peters2004-08-292-47/+47
| | | | | test depends on invisible trailing whitespace in .py files. The author will have to repair that.
* Whitespace normalization.Tim Peters2004-08-294-52/+52
|
* Patch #727483: Add AUTH_TYPE and REMOTE_USER.Martin v. Löwis2004-08-291-2/+15
|
* Patch #973204: Use -rpath instead of -R on Irix and Tru64.Martin v. Löwis2004-08-292-1/+7
|
* Patch #914575: difflib side by side diff support, diff.py s/b/s HTML option.Martin v. Löwis2004-08-293-5/+1328
|
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-292-0/+32
|
* SF feature request #992967: array.array objects should support sequences.Raymond Hettinger2004-08-291-3/+35
| | | | Made the constructor accept general iterables.
* Whitespace normalization.Tim Peters2004-08-292-10/+10
|
* Added an __iter__ method for test suites.Jim Fulton2004-08-282-0/+34
|
* setUp and tearDown functions are now passed the test objectJim Fulton2004-08-281-2/+2
|
* - setUp and tearDown functions are now passed the test objectJim Fulton2004-08-282-22/+235
| | | | | - Added a set_unittest_reportflags to set default reporting flags used when running doctests under unittest control.
* Removed old "if 0:" block for leak detection; wouldn't work anymore anyway.Tim Peters2004-08-271-8/+1
|
* Don't really need ellipsis doctests for the syntax errors, becauseTim Peters2004-08-271-12/+12
| | | | | | this module imports itself explicitly from test (so the "file names" current doctest synthesizes for examples don't vary depending on how test_generators is run).
* Removed outdated commentEdward Loper2004-08-271-2/+0
|
* Fixed 6 failures due to doctest changes.Tim Peters2004-08-271-16/+16
|
* test_bug1001011(): Verify thatTim Peters2004-08-271-5/+33
| | | | | | | | | s.join([t]) is t for (s, t) in (str, str), (unicode, unicode), and (str, unicode). For (unicode, str), verify that it's *not* t (the result is promoted to unicode instead). Also verify that when t is a subclass of str or unicode that "the right thing" happens.
* Remove unused method _OutputRedirectingPdb.resumeEdward Loper2004-08-271-3/+0
|
* - Removed redundant call to expandtabs in DocTestParesr.Edward Loper2004-08-272-67/+175
| | | | | | | | | | | | | | - 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.
* - Added DocTestParser.parse(), which parses a docstring into ExamplesEdward Loper2004-08-262-145/+137
| | | | | | | | | 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
* Move test_bug1001011() to string_tests.MixinStrUnicodeTest so thatWalter Dörwald2004-08-264-24/+23
| | | | | | 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)
* output_difference(): In fancy-diff cases, the way this split expected &Tim Peters2004-08-262-9/+5
| | | | | | | | 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.
* Add missing executable option to DummyCommand.Martin v. Löwis2004-08-261-1/+3
|
* Whitespace normalization.Tim Peters2004-08-262-6/+5
|
* _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.
* Remove unnecessary line.Raymond Hettinger2004-08-261-1/+0
|
* 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-262-10/+103
| | | | first failing example in each test.
* Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; andEdward Loper2004-08-262-23/+23
| | | | | | | 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