Commit Graph

14991 Commits

Author SHA1 Message Date
Georg Brandl c8284cfc57 #9087: update json docstrings -- unicode and long do not exist anymore. 2010-08-02 20:16:18 +00:00
Georg Brandl 07b90caed4 #8861: remove unused variable. 2010-08-02 19:44:48 +00:00
Georg Brandl 56be37cef2 #7973: Fix distutils options spelling. 2010-08-02 19:16:34 +00:00
Georg Brandl dee7b8503d #8560: add progress indicator to regrtest. 2010-08-02 18:59:52 +00:00
Georg Brandl 6fcac0d6f6 Move test_SimpleHTTPServer into test_httpservers. 2010-08-02 18:56:54 +00:00
Georg Brandl 2d3c4e79a1 #7372: fix regression in pstats: a previous fix to handle cProfile data in add_callers broke handling of profile data. 2010-08-02 17:24:49 +00:00
Georg Brandl 283b125551 #3821: beginnings of a trace.py unittest. 2010-08-02 12:48:46 +00:00
Georg Brandl dc50c696ab Fix softspace relic. 2010-08-02 12:40:22 +00:00
Georg Brandl 24085d7940 Get rid of spurious "threading" entries in trace output. 2010-08-02 12:36:24 +00:00
Georg Brandl 8e43fbfffa #9428: fix running scripts from profile/cProfile with their own name and the right namespace. Same fix as for trace.py in #1690103. 2010-08-02 12:20:23 +00:00
Georg Brandl b1a97afadb #9209 and #7781: fix two crashes in pstats interactive browser. 2010-08-02 12:06:18 +00:00
Senthil Kumaran 9f8dc4441f Fix Issue8572 - httplib getheader() throws error instead of default 2010-08-02 11:04:58 +00:00
Raymond Hettinger 5be21b7a5a Update OrderedDict implementation to match that in Py2.7. 2010-08-01 22:10:57 +00:00
Antoine Pitrou 7ffa196dce Issue #8397: Raise an error when attempting to mix iteration and regular
reads on a BZ2File object, rather than returning incorrect results.
2010-08-01 20:08:46 +00:00
Ronald Oussoren 7fb6f5121a test_getgroups as introduced with issue7900 failed on systems
where 'id -G' and posix.getgroups() returned the same information,
but one of the sources contains duplicate information. Rewrite the
check using sets instead of lists.
2010-08-01 19:18:13 +00:00
Senthil Kumaran de0eb249c6 Fix Issue8123 - TypeError in urllib when trying to use HTTP authentication 2010-08-01 17:53:37 +00:00
Georg Brandl e6c5950af0 #5551: symbolic links never can be mount points. Fixes the fix for #1713. 2010-08-01 15:30:56 +00:00
Brian Curtin ea47eaa395 Fix #8105. Add validation to mmap.mmap so invalid file descriptors
don't cause a crash on Windows.
2010-08-01 15:26:26 +00:00
Georg Brandl 0bccc185b4 #8046: add context manager protocol support to mmap objects. Also add closed property. 2010-08-01 14:50:00 +00:00
Georg Brandl 120d633871 #4943: do not try to include drive letters (and colons) when looking for a probably module name. 2010-08-01 14:38:17 +00:00
Mark Dickinson 5b1d35b9c7 Add test for memory leak reported in issue 9422. 2010-08-01 11:10:28 +00:00
Mark Dickinson 5b65df7ce2 Issue #9416: Fix some issues with complex formatting where the
output with no type specifier failed to match the str output:

  - format(complex(-0.0, 2.0), '-') omitted the real part from the output,
  - format(complex(0.0, 2.0), '-') included a sign and parentheses.
2010-08-01 10:41:49 +00:00
Georg Brandl b16e38b825 #8826: the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case. 2010-08-01 09:06:34 +00:00
Ronald Oussoren bda4672b01 Ensure that test_site actually passes with a framework build 2010-08-01 09:02:50 +00:00
Georg Brandl 794f5b3559 #4810: document "--" option separator in timeit help. 2010-08-01 08:52:32 +00:00
Georg Brandl 8f9f466505 #1690103: fix initial namespace for code run with trace.main(). 2010-08-01 08:35:29 +00:00
Georg Brandl f325e03f48 #8230: make Lib/test/sortperf.py run on Python 3. 2010-08-01 08:07:49 +00:00
Georg Brandl f02e7367eb Small improvements to pstats browser: do not crash on reading invalid file, and actually do a reload when executing "read" as intended. 2010-08-01 07:57:47 +00:00
Georg Brandl 3e4f2ec704 #7395: fix traceback in do_add() when no stats are loaded. Apply same fix for do_sort() and do_reverse(). 2010-08-01 07:48:43 +00:00
Georg Brandl 33b6a31c18 #8768: name test method properly so that it gets executed. 2010-08-01 06:44:46 +00:00
Georg Brandl 04c837e4b4 #8773: mailbox.py does not need to be executable. 2010-08-01 06:42:45 +00:00
Georg Brandl 76ae397583 Build properties using lambdas. This makes test_pyclbr pass again, because it does not think that input and output are methods anymore. 2010-08-01 06:32:55 +00:00
R. David Murray 7905d61b2c #8620: Cmd no longer truncates last character if stdin ends without newline
Cmd used to blindly chop off the last character of every input line.  If
the input reached EOF and there was no final new line, it would truncate
the last character of the last command.  This fix instead strips trailing
\r\n from the input lines.  While this is a small behavior change, it
should not break any working code, since feeding a '\r\n' terminated
file to Cmd would previously leave the \r's on the lines, resulting
in failed command execution.

I wrote the unit test in preparation for a PyOhio TeachMe session
run by Catherine Devlin, and we can thank Catherine and the PyOhio
session attendees for the fix.  I've added Catherine to the Acks file
for organizing and leading the TeachMe session, out of which we will
hopefully get some new contributors.
2010-08-01 03:31:09 +00:00
Georg Brandl 05245f7487 #5146: handle UID THREAD command correctly. 2010-07-31 22:32:52 +00:00
Georg Brandl 87a1564f24 #5147: revert accidental indentation of header constant for MozillaCookieJar. 2010-07-31 22:11:11 +00:00
Georg Brandl 62e2ca2193 #8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3). 2010-07-31 21:54:24 +00:00
Georg Brandl 78aa396415 #8198: the Helper class should not save the stdin and stdout objects
at import time, rather by default use the current streams like the
other APIs that output help.
2010-07-31 21:51:48 +00:00
Georg Brandl cfb68218b7 #7909: the prefixes \\.\ and \\?\ indicate special Windows paths, do not try to manipulate them. See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details. 2010-07-31 21:40:15 +00:00
Georg Brandl a8867b4173 There always is a False and True now. 2010-07-31 21:26:40 +00:00
Georg Brandl 4f85ae10f5 #8910: add a file explaining why Lib/test/data is there. 2010-07-31 21:12:15 +00:00
Georg Brandl 76e155a157 #3788: more tests for http.cookies, now at 95% coverage. Also bring coding style in the module up to PEP 8, where it does not break backwards compatibility. 2010-07-31 21:04:00 +00:00
Georg Brandl 7b280e9197 Clarify comment in comments test case explaining comment semantics. 2010-07-31 20:13:44 +00:00
Georg Brandl 6cb7b6593e #1286: allow using fileinput.FileInput as context manager. 2010-07-31 20:08:15 +00:00
Georg Brandl ec5ae3b9f5 Fix bad merge: test_support -> support. 2010-07-31 19:17:11 +00:00
Georg Brandl 38005e8156 #9440: Remove borderline test case that fails based on unpredictable conditions such as compiler flags. 2010-07-31 18:11:07 +00:00
Georg Brandl 2e7346acc9 Re-commit r83327 now that the release is done. 2010-07-31 18:09:23 +00:00
Georg Brandl a8fbc6a521 Import test_pdb with its full name, so that running python -m test.test_pdb succeeds. 2010-07-31 11:52:46 +00:00
Victor Stinner d5baeee66b Issue #8966: Fix ctypes tests for Windows
I removed the implicit conversion from str to bytes.
2010-07-31 10:52:56 +00:00
Georg Brandl 014e0ca58e Revert r83327. This will have to wait until after the alpha1 release. 2010-07-31 10:16:21 +00:00
Raymond Hettinger 9e46ef819c Add functools.lfu_cache() and functools.lru_cache(). 2010-07-31 10:11:39 +00:00