Ned Deily
122539e287
#10974 : IDLE no longer crashes if its recent files list includes files
...
with non-ASCII characters in their path names.
(with approval of release manager for 3.2rc2)
2011-01-24 21:46:44 +00:00
Terry Reedy
e2248f9e6d
Issue #11000 ast.parse doc fix (r88172) + tix fix (r88170)
2011-01-24 21:46:05 +00:00
Terry Reedy
feac624827
Issue #11000 ast.parse parses source, not just expressions.
2011-01-24 21:36:03 +00:00
Steven Bethard
b02701101b
Issue #9509 : make argarse properly handle IOErrors raised by argparse.FileType. Approved by Georg in the tracker.
2011-01-24 21:02:50 +00:00
Raymond Hettinger
bf1d2bc7cb
Make the type consistent for hashlib algorithm constants. (Reviewed by Benjamin).
2011-01-24 04:52:27 +00:00
Brett Cannon
c3e8867a41
Skip a recursion depth check test when running under CPython and have a trace
...
function set. Otherwise a Python fatal error about hitting an unrecoverable
recursion depth gets triggered.
Closes issue #10985 . Code review by Georg Brandl.
2011-01-23 23:06:05 +00:00
Raymond Hettinger
6ef18f4fa3
Fix typo.
2011-01-23 21:33:36 +00:00
Raymond Hettinger
98b140c196
Add entry for reprlib.
2011-01-23 21:05:46 +00:00
Georg Brandl
c7c199f907
#10983 : fix several bugs in the _tunnel implementation that seem to have missed while porting between branches. A unittest is needed!
2011-01-22 22:06:24 +00:00
Armin Ronacher
59531287fd
To match the behaviour of HTTP server, the HTTP client library now also encodes
...
headers with iso-8859-1 (latin1) encoding. It was already doing that for
incoming headers which makes this behaviour now consistent in both incoming and
outgoing direction.
2011-01-22 13:44:22 +00:00
Armin Ronacher
8d96d77f9a
Issue #10980 : encode headers with latin1 instead of ASCII in the HTTP server.
...
This makes the implementation of PEP 3333 compliant servers on top of
BaseHTTPServer possible.
2011-01-22 13:13:05 +00:00
Vinay Sajip
eb9d5ad6ba
Issue #10949 : Improved robustness of rotating file handlers.
2011-01-21 23:35:57 +00:00
Vinay Sajip
01241d6c35
Issue #10949 : Improved robustness of rotating file handlers.
2011-01-21 23:35:57 +00:00
Antoine Pitrou
a970e62258
Merged revisions 88137 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88137 | antoine.pitrou | 2011-01-21 22:37:32 +0100 (ven., 21 janv. 2011) | 3 lines
Fix JSON docs about loads() accepting only str objects, not bytes.
........
2011-01-21 21:39:56 +00:00
Antoine Pitrou
00d650baaa
Fix JSON docs about loads() accepting only str objects, not bytes.
2011-01-21 21:37:32 +00:00
Antoine Pitrou
6107a4e24a
Merged revisions 88131 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88131 | antoine.pitrou | 2011-01-20 22:07:24 +0100 (jeu., 20 janv. 2011) | 6 lines
Issue #10955 : Fix a potential crash when trying to mmap() a file past its
length. Initial patch by Ross Lagerwall.
This fixes a regression introduced by r88022.
........
2011-01-20 21:11:13 +00:00
Antoine Pitrou
305bc9e0e8
Issue #10955 : Fix a potential crash when trying to mmap() a file past its
...
length. Initial patch by Ross Lagerwall.
This fixes a regression introduced by r88022.
2011-01-20 21:07:24 +00:00
Alexander Belopolsky
41a99bc20d
Issue #10934 : Fixed and expanded Internaldate2tuple() and
...
Time2Internaldate() documentation. Thanks Joe Peterson for the report
and the original patch.
2011-01-19 19:53:30 +00:00
Antoine Pitrou
566facd39b
Merged revisions 88097 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88097 | antoine.pitrou | 2011-01-18 19:57:52 +0100 (mar., 18 janv. 2011) | 4 lines
Issue #10451 : memoryview objects could allow to mutate a readable buffer.
Initial patch by Ross Lagerwall.
........
2011-01-18 19:06:09 +00:00
Antoine Pitrou
ad62b03949
Issue #10451 : memoryview objects could allow to mutate a readable buffer.
...
Initial patch by Ross Lagerwall.
2011-01-18 18:57:52 +00:00
Raymond Hettinger
5bdfd910f5
Remove out-of-date comment
2011-01-16 09:16:27 +00:00
Antoine Pitrou
50dc65f6ce
Merged revisions 88036 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88036 | antoine.pitrou | 2011-01-15 18:25:58 +0100 (sam., 15 janv. 2011) | 3 lines
Fix mmap and test_mmap under Windows too (followup to r88022)
........
2011-01-15 17:31:19 +00:00
Antoine Pitrou
d0ebc75e73
Fix mmap and test_mmap under Windows too (followup to r88022)
2011-01-15 17:25:58 +00:00
Georg Brandl
3988ed8e6f
Bump to 3.2rc1.
2011-01-15 17:08:53 +00:00
Georg Brandl
5cc3dcb191
Update pydoc topics.
2011-01-15 16:44:11 +00:00
Antoine Pitrou
fb7bc3d2f0
Merged revisions 88022 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88022 | antoine.pitrou | 2011-01-15 17:17:07 +0100 (sam., 15 janv. 2011) | 7 lines
Issue #10916 : mmap should not segfault when a file is mapped using 0 as
length and a non-zero offset, and an attempt to read past the end of file
is made (IndexError is raised instead). Patch by Ross Lagerwall.
Requested by Georg.
........
2011-01-15 16:18:37 +00:00
Antoine Pitrou
85f4615500
Issue #10916 : mmap should not segfault when a file is mapped using 0 as
...
length and a non-zero offset, and an attempt to read past the end of file
is made (IndexError is raised instead). Patch by Ross Lagerwall.
Requested by Georg.
2011-01-15 16:17:07 +00:00
Ned Deily
4ce92b23fe
#10907 : Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5,
...
rather than the currently problematic Apple-supplied one,
when running with the 64-/32-bit installer variant.
2011-01-15 04:37:12 +00:00
Antoine Pitrou
78ae1fb1b9
Merged revisions 87968,87971-87975 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87968 | antoine.pitrou | 2011-01-12 21:46:37 +0100 (mer., 12 janv. 2011) | 4 lines
Fix the expected memory use of utf-8 encoding. Also, release the
one reference to a huge object even when an exception is raised.
........
r87971 | antoine.pitrou | 2011-01-12 22:19:59 +0100 (mer., 12 janv. 2011) | 3 lines
Make test skipping message nicer, and remove the rather useless "overhead" parameter.
........
r87972 | antoine.pitrou | 2011-01-12 22:40:20 +0100 (mer., 12 janv. 2011) | 3 lines
Fix @bigmemtest when no limit is given by the user (oops)
........
r87973 | antoine.pitrou | 2011-01-12 22:50:44 +0100 (mer., 12 janv. 2011) | 3 lines
More informative skip message in @bigaddrspace
........
r87974 | antoine.pitrou | 2011-01-12 22:58:39 +0100 (mer., 12 janv. 2011) | 3 lines
A better message again
........
r87975 | antoine.pitrou | 2011-01-12 23:02:45 +0100 (mer., 12 janv. 2011) | 3 lines
Fix test_bigaddrspace (some tests didn't trigger the expected MemoryError)
........
2011-01-14 20:19:57 +00:00
Victor Stinner
f1c7ca93c1
cgi: use isinstance(x, list) instead of type(x) == type([])
2011-01-14 13:08:27 +00:00
Victor Stinner
5c23b8e6ea
Issue #4953 : cgi.FieldStorage and cgi.parse() parse the request as bytes, not
...
as unicode, and accept binary files. Add encoding and errors attributes to
cgi.FieldStorage.
2011-01-14 13:05:21 +00:00
Victor Stinner
1d87deb605
test_urlparse: add tests for encoding and errors arguments
2011-01-14 13:05:19 +00:00
Victor Stinner
ac71c54b88
Add encoding and errors arguments to urllib.parse_qs() and urllib.parse_qsl()
2011-01-14 12:52:12 +00:00
Raymond Hettinger
d958ea70bc
Issue 10899: Remove function type annotations from the stdlib
2011-01-13 19:08:04 +00:00
Raymond Hettinger
cbb80896ae
Issue #10899 : Move function type annotations into docstrings.
...
Note, the docstrings (for the most part) were already very thorough
and included type information.
2011-01-13 18:15:51 +00:00
Georg Brandl
4d73b570eb
More PEP 8: no space around "=" in argument lists.
2011-01-13 07:13:06 +00:00
Raymond Hettinger
00fa03900c
Issue 10899: Remove function type annotations from the stdlib
2011-01-13 02:52:26 +00:00
Raymond Hettinger
cd92f37582
Issue 10899: Remove function type annotations from the stdlib
2011-01-13 02:31:25 +00:00
Raymond Hettinger
d2b03e1409
Backport 87978: Do not expose function type annotations in the standard library.
2011-01-12 23:52:40 +00:00
Raymond Hettinger
3c94024c3e
Issue #10899 : No function type annotations in the standard library.
...
Removed function type annotations from _pyio.py.
2011-01-12 23:39:31 +00:00
Antoine Pitrou
1e28513d25
Fix test_bigaddrspace (some tests didn't trigger the expected MemoryError)
2011-01-12 22:02:45 +00:00
Antoine Pitrou
98c62bd1c8
A better message again
2011-01-12 21:58:39 +00:00
Antoine Pitrou
e0d3f8a654
More informative skip message in @bigaddrspace
2011-01-12 21:50:44 +00:00
Antoine Pitrou
9dd1171305
Fix @bigmemtest when no limit is given by the user (oops)
2011-01-12 21:40:20 +00:00
Antoine Pitrou
aca5fa7010
Make test skipping message nicer, and remove the rather useless "overhead" parameter.
2011-01-12 21:19:59 +00:00
Raymond Hettinger
3b6e83173c
Remove the funky function annotation from numbers.py.
2011-01-12 20:54:53 +00:00
Raymond Hettinger
219c300748
Remove the funky function annotation from numbers.py.
2011-01-12 20:52:39 +00:00
Antoine Pitrou
45545f79c9
Fix the expected memory use of utf-8 encoding. Also, release the
...
one reference to a huge object even when an exception is raised.
2011-01-12 20:46:37 +00:00
Raymond Hettinger
3bce13d42b
Remove the function annotations from _abcoll.py
2011-01-12 20:46:15 +00:00
Raymond Hettinger
b3d89a4ee4
Remove function annotations that slipped into _abcoll.
...
These are reserved for third-party use.
2011-01-12 20:37:47 +00:00
Benjamin Peterson
ecb6e81d9e
Merged revisions 87895 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87895 | lukasz.langa | 2011-01-09 12:18:53 -0600 (Sun, 09 Jan 2011) | 5 lines
#10874 : test_urllib2 shouldn't use `is` operator for comparing strings
Patch by Adreas Stührk.
........
2011-01-12 19:29:51 +00:00
Antoine Pitrou
b633eab98e
Merged revisions 87958 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87958 | antoine.pitrou | 2011-01-12 19:45:27 +0100 (mer., 12 janv. 2011) | 4 lines
Issue #10822 : Fix test_posix:test_getgroups failure under Solaris. Patch
by Ross Lagerwall.
........
2011-01-12 18:50:35 +00:00
Antoine Pitrou
318b8f35fe
Issue #10822 : Fix test_posix:test_getgroups failure under Solaris. Patch
...
by Ross Lagerwall.
2011-01-12 18:45:27 +00:00
Benjamin Peterson
de368717da
Merged revisions 87952-87954 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87952 | benjamin.peterson | 2011-01-12 09:24:27 -0600 (Wed, 12 Jan 2011) | 1 line
move this test to test_descr; it's not abc specific
........
r87953 | benjamin.peterson | 2011-01-12 09:25:02 -0600 (Wed, 12 Jan 2011) | 1 line
oops, wrong class
........
r87954 | benjamin.peterson | 2011-01-12 09:34:01 -0600 (Wed, 12 Jan 2011) | 1 line
don't segfault on deleting __abstractmethods__ #10892
........
2011-01-12 15:42:34 +00:00
Benjamin Peterson
477ba919c1
don't segfault on deleting __abstractmethods__ #10892
2011-01-12 15:34:01 +00:00
Benjamin Peterson
5e8dada491
oops, wrong class
2011-01-12 15:25:02 +00:00
Benjamin Peterson
1c02a44023
move this test to test_descr; it's not abc specific
2011-01-12 15:24:27 +00:00
Nick Coghlan
e993b10041
Issue 10889: Support slicing and indexing of large ranges (no docs changes, since, as far as I know, we never said anywhere that this *didn't* work)
2011-01-12 03:15:52 +00:00
Raymond Hettinger
524359f9f7
Add comment.
2011-01-11 22:08:55 +00:00
Alexander Belopolsky
ef4a03fffe
Issue #5109 : array.array constructor will now use fast code when
...
initial data is provided in an array object with correct type.
2011-01-11 21:44:00 +00:00
Raymond Hettinger
5cee47f321
Add entry for Barrier objects.
2011-01-11 19:59:46 +00:00
Alexander Belopolsky
7be05b221d
Merged revisions 82547 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82547 | alexander.belopolsky | 2010-07-04 13:00:20 -0400 (Sun, 04 Jul 2010) | 3 lines
Issue #9118 : help(None) will now return NoneType doc instead of
starting interactive help.
........
2011-01-11 15:23:22 +00:00
Eric Smith
a3e8f3d85f
Typo.
2011-01-11 10:24:34 +00:00
Nick Coghlan
90be5fb817
Issue 10556: test_zipimport_support implicitly imports too many modules (including _ssl) to safely clobber sys.modules after each test
2011-01-11 10:05:20 +00:00
Alexander Belopolsky
a6892418ad
This should fix mktime test on Windows
2011-01-11 02:22:16 +00:00
Alexander Belopolsky
31c5dd6b19
Make mktime test more robust.
2011-01-11 01:35:22 +00:00
Alexander Belopolsky
b7d40d1702
Issue #1726687 : time.mktime() will now correctly compute value one
...
second before epoch. Original patch by Peter Wang, reported by Martin
Blais.
2011-01-11 01:21:25 +00:00
Antoine Pitrou
a4815caa7c
Issue #10872 : The repr() of TextIOWrapper objects now includes the mode
...
if available.
(at Georg's request)
2011-01-09 20:38:15 +00:00
Łukasz Langa
d7e81cc5fa
#10874 : test_urllib2 shouldn't use `is` operator for comparing strings
...
Patch by Adreas Stührk.
2011-01-09 18:18:53 +00:00
Georg Brandl
7fdc746a81
Merged revisions 87876-87877 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r87876 | georg.brandl | 2011-01-09 08:38:51 +0100 (So, 09 Jan 2011) | 1 line
#10869 : do not visit root node twice in ast.increment_lineno().
........
r87877 | georg.brandl | 2011-01-09 08:50:48 +0100 (So, 09 Jan 2011) | 1 line
Add missing line.
........
2011-01-09 07:55:46 +00:00
Georg Brandl
efb6902c3d
Add missing line.
2011-01-09 07:50:48 +00:00
Georg Brandl
619e7ba814
#10869 : do not visit root node twice in ast.increment_lineno().
2011-01-09 07:38:51 +00:00
R. David Murray
389af00371
Merged revisions 87873 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87873 | r.david.murray | 2011-01-08 21:35:24 -0500 (Sat, 08 Jan 2011) | 12 lines
#5871 : protect against header injection attacks.
This makes Header.encode throw a HeaderParseError if it winds up
formatting a header such that a continuation line has no leading
whitespace and looks like a header. Since Header accepts values
containing newlines and preserves them (and this is by design), without
this fix any program that took user input (say, a subject in a web form)
and passed it to the email package as a header was vulnerable to header
injection attacks. (As far as we know this has never been exploited.)
Thanks to Jakub Wilk for reporting this vulnerability.
........
2011-01-09 02:48:04 +00:00
R. David Murray
5b2d9ddf69
#5871 : protect against header injection attacks.
...
This makes Header.encode throw a HeaderParseError if it winds up
formatting a header such that a continuation line has no leading
whitespace and looks like a header. Since Header accepts values
containing newlines and preserves them (and this is by design), without
this fix any program that took user input (say, a subject in a web form)
and passed it to the email package as a header was vulnerable to header
injection attacks. (As far as we know this has never been exploited.)
Thanks to Jakub Wilk for reporting this vulnerability.
2011-01-09 02:35:24 +00:00
Antoine Pitrou
50778ab4c2
Merged revisions 87861,87863 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87861 | antoine.pitrou | 2011-01-08 11:23:29 +0100 (sam., 08 janv. 2011) | 3 lines
Fix test_ssl after r87849
........
r87863 | antoine.pitrou | 2011-01-08 11:28:11 +0100 (sam., 08 janv. 2011) | 3 lines
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
........
2011-01-08 10:31:09 +00:00
Antoine Pitrou
5d938cb366
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
2011-01-08 10:28:11 +00:00
Antoine Pitrou
160fd938ed
Fix test_ssl after r87849
2011-01-08 10:23:29 +00:00
Antoine Pitrou
67b212e608
Issue #10859 : Make `contextlib.GeneratorContextManager` officially
...
private by renaming it to `_GeneratorContextManager`.
2011-01-08 09:55:31 +00:00
Raymond Hettinger
23f9fc3448
Issue #10042 : Fixed the total_ordering decorator to handle cross-type
...
comparisons that could lead to infinite recursion.
2011-01-08 07:01:56 +00:00
Victor Stinner
f332abbf15
test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.de
2011-01-08 03:16:05 +00:00
Victor Stinner
301f1217ac
Issue #1777412 : Remove all limits on tm_year from time.strftime()
...
The buildbots will tell us which platform does support or not negative years.
2011-01-08 03:06:52 +00:00
Victor Stinner
af5aee57c9
Issue #1777412 : fix test_time for Mac OS X and OpenIndiana
2011-01-08 02:46:33 +00:00
Victor Stinner
736913269e
Issue #1777412 : test large years value for strftime('%Y')
2011-01-08 02:00:24 +00:00
Victor Stinner
73ea29cb03
Issue #1777412 : strftime() accepts year >= 1 instead of year >= 1900
...
* With Visual Studio, year have to be in [1; 9999]
* Add more tests on the year field
2011-01-08 01:56:31 +00:00
Alexander Belopolsky
0dd06f4082
Fixed error handling branches. Thanks
...
Victor Stinner for pointing this out.
2011-01-08 01:23:02 +00:00
Alexander Belopolsky
b8bb4664fc
Issue #1777412 : extended year range of strftime down to 1000.
2011-01-08 00:13:34 +00:00
R. David Murray
9253214fd9
#10686 : recode non-ASCII headers to 'unknown-8bit' instead of ?s.
...
This applies only when generating strings from non-RFC compliant binary
input; it makes the existing recoding behavior more consistent (ie:
now no data is lost when recoding).
2011-01-07 23:25:30 +00:00
R. David Murray
6f0022d84a
Fix formatting of values with embedded newlines when rfc2047 encoding
...
Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word. Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.
2011-01-07 21:57:25 +00:00
Alexander Belopolsky
c64708ae48
Issue #10827 : Changed the rules for 2-digit years. The time.asctime
...
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise. The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.
2011-01-07 19:59:19 +00:00
Brett Cannon
63eef1e0dd
Get --coverage to be an acceptable flag for test.regrtest again.
2011-01-06 22:32:41 +00:00
Alexander Belopolsky
610e544bf7
Further simplify gettmarg()
2011-01-06 21:57:06 +00:00
Antoine Pitrou
59bf738874
Merged revisions 87797 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87797 | antoine.pitrou | 2011-01-06 18:17:04 +0100 (jeu., 06 janv. 2011) | 4 lines
Issue #3839 : wsgiref should not override a Content-Length header set by
the application. Initial patch by Clovis Fabricio.
........
2011-01-06 17:18:32 +00:00
Antoine Pitrou
b715fac819
Issue #3839 : wsgiref should not override a Content-Length header set by
...
the application. Initial patch by Clovis Fabricio.
2011-01-06 17:17:04 +00:00
Georg Brandl
e98628d60c
Remove doc for nonexisting parameter.
2011-01-06 09:15:45 +00:00
Antoine Pitrou
ca023cab4d
Issue #1677694 : Refactor and improve test_timeout. Original patch by
...
Björn Lindqvist.
2011-01-06 09:05:22 +00:00
Raymond Hettinger
7beae8a0d5
Issue 10825: Minor updates to the test suite.
2011-01-06 05:34:17 +00:00
Victor Stinner
4bd81725f2
Issue #10492 : bdb.Bdb.run() only traces the execution of the code
...
And not the compilation (if the input is a string).
2011-01-06 00:49:38 +00:00
Victor Stinner
457ab068a3
test_atexit: fix code saving/restoring stdout and stderr
...
That's why I prefer a single instruction per line :-)
2011-01-05 23:47:00 +00:00
Victor Stinner
73efd621fb
test_imaplib: reap_server() closes the server when done
...
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
2011-01-05 23:01:38 +00:00
Victor Stinner
33e649cf6d
imaplib: IMAP4 constructor closes the socket on error
...
Fix a ResourceWarning(unclosed socket) if an exception is raised in the
constructor after the creation of the socket. Patch written by Nadeem Vawda.
2011-01-05 23:01:37 +00:00
Alexander Belopolsky
a686725859
- time.accept2dyear = True is now equivalent to time.accept2dyear = 1
...
- removed unnecessary struct_time to tuple conversion
- added more unit tests
(See issue #10827 for discussion.)
2011-01-05 23:00:47 +00:00
Georg Brandl
be41a48fb8
On Py3k, -tt and -3 are no-op and unsupported respectively.
2011-01-05 21:47:47 +00:00
Antoine Pitrou
600232b562
Issue #7995 : When calling accept() on a socket with a timeout, the returned
...
socket is now always non-blocking, regardless of the operating system.
2011-01-05 21:03:42 +00:00
Raymond Hettinger
7d967712b8
Update tests and whatsnew for the 'quiet' flag
2011-01-05 20:24:08 +00:00
Antoine Pitrou
452196fef1
Issue #5485 : Add tests for the UseForeignDTD method of expat parser objects.
...
Patch by Jean-Paul Calderone and Sandro Tosi.
2011-01-05 18:44:14 +00:00
Victor Stinner
b996f740f2
test_time: assertEquals => assertEqual
2011-01-05 03:58:54 +00:00
Victor Stinner
c932b65428
test_threading: use Popen.communicate() instead of .wait()
...
Popen.communicate() avoids deadlocks and close the pipes when done. This commit
fixes a ResourceWarning(unclosed pipe).
2011-01-05 03:54:28 +00:00
Victor Stinner
4b2b43d988
regrtest: close the new stdout and restore the original stdout at exit
...
Fix a ResourceWarning(unclosed file).
2011-01-05 03:54:26 +00:00
Victor Stinner
358e11d928
Issue #10756 : atexit normalizes the exception before displaying it.
2011-01-05 03:54:25 +00:00
Victor Stinner
29e762c941
test_bytes: test PyBytes_FromFormat() using ctypes
2011-01-05 03:33:28 +00:00
R. David Murray
f9844c8292
Merged revisions 87750 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87750 | r.david.murray | 2011-01-04 20:39:32 -0500 (Tue, 04 Jan 2011) | 5 lines
#10790 : make append work when output codec is different from input codec
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
........
2011-01-05 01:47:38 +00:00
R. David Murray
477efb3944
#10790 : make append work when output codec is different from input codec
...
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
2011-01-05 01:39:32 +00:00
Victor Stinner
ca1e7ec344
test_unicode: use ctypes to test PyUnicode_FromFormat()
...
Instead of _testcapi.format_unicode() because it has a limited API: it requires
exactly one argument of type unicode.
2011-01-05 00:19:28 +00:00
Antoine Pitrou
1ec121d0d1
Fix test_time under Windows
2011-01-04 22:54:30 +00:00
Raymond Hettinger
1d879f6852
Backport r87613 to make OrderedDict subclassing match dict subclassing.
2011-01-04 20:57:19 +00:00
Antoine Pitrou
c99823211b
In subprocess, wrap pipe fds before launching the child. Hopefully this
...
will fix intermittent failures on some buildbots (issue #8458 ).
2011-01-04 19:07:07 +00:00
Gregory P. Smith
db0ef2b5e5
Merged revisions 87740 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87740 | gregory.p.smith | 2011-01-04 10:33:38 -0800 (Tue, 04 Jan 2011) | 6 lines
Fix the new bug introduced in the r87710 fix for issue 6643. DummyThread
deletes its _block attribute, deal with that. This prevents an uncaught
exception in a thread during test_thread.
This refactors a bit to better match what I did in the r87727 backport to 2.7.
........
2011-01-04 18:42:29 +00:00
Gregory P. Smith
9bd4a245f2
Fix the new bug introduced in the r87710 fix for issue 6643. DummyThread
...
deletes its _block attribute, deal with that. This prevents an uncaught
exception in a thread during test_thread.
This refactors a bit to better match what I did in the r87727 backport to 2.7.
2011-01-04 18:33:38 +00:00
Georg Brandl
3fb97ae0f7
Fix exception catching.
2011-01-04 17:27:13 +00:00
Alexander Belopolsky
ecebdc7469
Issue #8013 : Fix time.ctime test failure on 32-bit platforms.
2011-01-04 17:08:04 +00:00
Alexander Belopolsky
b9588b528a
Issue #8013 : time.asctime and time.ctime no longer call system asctime
...
and ctime functions. The year range for time.asctime is now 1900
through maxint. The range for time.ctime is the same as for
time.localtime. The string produced by these functions is longer than
24 characters when year is greater than 9999.
2011-01-04 16:34:30 +00:00
Victor Stinner
c3a51ecb85
Issue #10819 : SocketIO.name property returns -1 when its closed, instead of
...
raising a ValueError, to fix repr().
2011-01-04 11:00:45 +00:00
Victor Stinner
8848c7a37f
Issue #8650 : zlib.compress() and zlib.decompress() raise an OverflowError if
...
the input buffer length doesn't fit into an unsigned int (length bigger than
2^32-1 bytes).
2011-01-04 02:07:36 +00:00
Victor Stinner
b3c9e073fc
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1).
2011-01-04 02:07:34 +00:00
Gregory P. Smith
4b129d23f6
Merged revisions 87710 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87710 | gregory.p.smith | 2011-01-03 13:06:12 -0800 (Mon, 03 Jan 2011) | 4 lines
issue6643 - Two locks held within the threading module on each thread instance
needed to be reinitialized after fork(). Adds tests to confirm that they are
and that a potential deadlock and crasher bug are fixed (platform dependant).
........
2011-01-04 00:51:50 +00:00
Antoine Pitrou
c3a4787ccb
Merged revisions 87721 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87721 | antoine.pitrou | 2011-01-04 01:24:03 +0100 (mar., 04 janv. 2011) | 3 lines
Issue #10267 : Fix refleak in test_ttk_guionly. Patch by Hirokazu Yamamoto.
........
2011-01-04 00:32:18 +00:00
Antoine Pitrou
560f9dab55
Issue #10267 : Fix refleak in test_ttk_guionly. Patch by Hirokazu Yamamoto.
2011-01-04 00:24:03 +00:00
Victor Stinner
04ba966eab
test_httplib: fix a DeprecationWarning, assertEquals=>assertEqual
2011-01-04 00:04:46 +00:00
Victor Stinner
7a6a0093f3
test_array: fix the DeprecationWarning('object.__init__() takes no parameters')
2011-01-04 00:04:44 +00:00
Victor Stinner
cae969e70a
fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset()
2011-01-03 23:56:12 +00:00
Antoine Pitrou
47f14bade8
Un-complicate some code
2011-01-03 23:42:01 +00:00
Antoine Pitrou
dcdc3b4c5d
Add some more output
2011-01-03 22:24:52 +00:00
Antoine Pitrou
c43ec08baf
Temporary debug output for intermittent failures in test_subprocess
2011-01-03 22:12:43 +00:00
Antoine Pitrou
95aaeee59a
Add a subprocess test of remapping standard file descriptors (issue #1187 ).
2011-01-03 21:15:48 +00:00
Gregory P. Smith
96c886ce96
issue6643 - Two locks held within the threading module on each thread instance
...
needed to be reinitialized after fork(). Adds tests to confirm that they are
and that a potential deadlock and crasher bug are fixed (platform dependant).
2011-01-03 21:06:12 +00:00
Antoine Pitrou
41d5866e56
Merged revisions 87704-87705 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87704 | antoine.pitrou | 2011-01-03 21:38:52 +0100 (lun., 03 janv. 2011) | 5 lines
Issue #6293 : Have regrtest.py echo back sys.flags. This is done by default
in whole runs and enabled selectively using `--header` when running an
explicit list of tests. Original patch by Collin Winter.
........
r87705 | antoine.pitrou | 2011-01-03 21:40:07 +0100 (lun., 03 janv. 2011) | 3 lines
Mention --randseed in option list
........
2011-01-03 20:47:02 +00:00
Antoine Pitrou
68530ac3c0
Mention --randseed in option list
2011-01-03 20:40:07 +00:00
Antoine Pitrou
3c4402f879
Issue #6293 : Have regrtest.py echo back sys.flags. This is done by default
...
in whole runs and enabled selectively using `--header` when running an
explicit list of tests. Original patch by Collin Winter.
2011-01-03 20:38:52 +00:00
Antoine Pitrou
f50a6b6b6d
Merged revisions 87695 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87695 | antoine.pitrou | 2011-01-03 19:23:55 +0100 (lun., 03 janv. 2011) | 5 lines
Issue #10806 , issue #9905 : Fix subprocess pipes when some of the standard
file descriptors (0, 1, 2) are closed in the parent process. Initial
patch by Ross Lagerwall.
........
2011-01-03 18:36:36 +00:00
Antoine Pitrou
c9c83ba896
Issue #10806 , issue #9905 : Fix subprocess pipes when some of the standard
...
file descriptors (0, 1, 2) are closed in the parent process. Initial
patch by Ross Lagerwall.
2011-01-03 18:23:55 +00:00
Éric Araujo
904fe042f3
Merged revisions 87691 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87691 | eric.araujo | 2011-01-03 18:51:11 +0100 (lun., 03 janv. 2011) | 2 lines
Fix test_site for systems without unsetenv. Reported by Zsolt Cserna.
........
2011-01-03 17:53:13 +00:00
Éric Araujo
63ebe1c309
Fix test_site for systems without unsetenv. Reported by Zsolt Cserna.
2011-01-03 17:51:11 +00:00
Alexander Belopolsky
622eb174d2
Issue 10814: time.asctime test will now use a valid day with out of range year.
2011-01-03 17:06:39 +00:00
Michael Foord
32e1d8340c
Enable unittest.TestCase to be instantiated without providing a method name.
...
Changed unittestgui to show number of discovered tests in the status bar.
2011-01-03 17:00:11 +00:00
Victor Stinner
faa8c13ef4
test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools()
2011-01-03 16:36:00 +00:00
Victor Stinner
a3abd1d240
pydoc: close the DocServer when done
2011-01-03 16:12:39 +00:00
Victor Stinner
2b69506c79
Issue #10816 : multiprocessing.SocketClient() closes the socket on error
...
Use a context manager to close immediatly the socket on error.
2011-01-03 15:47:59 +00:00
Victor Stinner
1d5eb3425b
test_socket: use context managers to close directly the socket
...
Fix ResourceWarning(unclosed socket) warnings. Patch written by Nadeem Vawda.
2011-01-03 14:30:46 +00:00
Victor Stinner
a935e8ffc6
test_xmlrpc: close the transport when done
...
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
2011-01-03 14:30:44 +00:00
Victor Stinner
270fe40831
test_tkinter: use a context manager to close directly the pipe
...
Patch written by Nadeem Vawda
2011-01-03 14:30:43 +00:00
Victor Stinner
5c85e3f390
test_timeout: move testRecvfromTimeout() to a UDP-specific test case
...
Fix a ResourceWarning(unclosed socket).
2011-01-03 14:30:41 +00:00
Victor Stinner
109761ba07
test_sockserver: close servers when done
2011-01-03 14:30:39 +00:00
Raymond Hettinger
8dfb9288af
Backport r87672 and r87615, improving tests, using super() instead of direct parent references, and using __reduce__ method for pickling.
2011-01-03 08:50:48 +00:00
Brian Quinlan
1d1df8257f
Removes the 'Call' class which is used to control execution order and is unreliable on Windows
2011-01-03 02:56:39 +00:00
Raymond Hettinger
ff72816b5f
Supply a reduce method for pickling.
2011-01-03 02:44:14 +00:00
Raymond Hettinger
426e052a4f
Make C helper function more closely match the pure python version, and add tests.
2011-01-03 02:12:02 +00:00
Amaury Forgeot d'Arc
32e8aab1fb
Merged revisions 87666 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87666 | amaury.forgeotdarc | 2011-01-03 01:19:11 +0100 (lun., 03 janv. 2011) | 4 lines
#8278 : In the Windows implementation of stat() and utime(),
use time_t instead of int. This gives support for dates after 2038,
at least when compiled with VS2003 or later, where time_t is 64bit.
........
2011-01-03 00:40:04 +00:00
Martin v. Löwis
23eaa70057
Skip hanging test.
2011-01-03 00:19:59 +00:00
Amaury Forgeot d'Arc
a251a853c7
#8278 : In the Windows implementation of stat() and utime(),
...
use time_t instead of int. This gives support for dates after 2038,
at least when compiled with VS2003 or later, where time_t is 64bit.
2011-01-03 00:19:11 +00:00
Martin v. Löwis
9f6d48ba4e
Issue #10798 : Reject supporting concurrent.futures if the system has
...
too few POSIX semaphores.
2011-01-03 00:07:01 +00:00
Alexander Belopolsky
d4bf48bbb3
Merged revisions 87648,87656 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87648 | alexander.belopolsky | 2011-01-02 15:48:22 -0500 (Sun, 02 Jan 2011) | 1 line
Issue #8013 : Fixed time.asctime segfault when OS's asctime fails
........
r87656 | alexander.belopolsky | 2011-01-02 17:16:10 -0500 (Sun, 02 Jan 2011) | 1 line
Issue #8013 : Fixed test
........
2011-01-02 23:09:41 +00:00
Georg Brandl
ed3baf35c3
#10810 : fix missing import.
2011-01-02 22:55:12 +00:00
Georg Brandl
e10608cf5d
#8013 follow-up:
...
* In asctime and ctime, properly remove the newline if the year has more than four digits
* Consistent error message for both functions
* Fix the test comments and add a check for the removed newline
2011-01-02 22:33:43 +00:00
Alexander Belopolsky
3e913c9ecf
Issue #8013 : Fixed test
2011-01-02 22:16:10 +00:00
Alexander Belopolsky
e2dc082294
Issue #8013 : Fixed time.asctime segfault when OS's asctime fails
2011-01-02 20:48:22 +00:00
Victor Stinner
b6f424043d
Issue #10807 : Remove base64, bz2, hex, quopri, rot13, uu and zlib codecs from
...
the codec aliases. They are still accessible via codecs.lookup().
2011-01-02 19:50:36 +00:00
Antoine Pitrou
d8f37ad196
Relax test condition a lot
2011-01-02 16:16:09 +00:00
Raymond Hettinger
00d43fd056
Fix doctest to not rely on order of dictionary entries.
...
Use super() instead of direct references to the dict superclass.
2011-01-02 08:03:33 +00:00
Raymond Hettinger
345c49b16b
Fix OrderedDic.pop() to work for subclasses that define __missing__().
2011-01-01 23:51:55 +00:00
Raymond Hettinger
32062e9be7
Make it easier to extend OrderedDict without breaking it.
2011-01-01 22:38:00 +00:00
Georg Brandl
04480a8ae5
#10801 : do not actually extract, just open() the files in the test zipfile.
2011-01-01 10:42:31 +00:00
Georg Brandl
5ba11de845
#10801 : In zipfile, support different encodings for the header and the filenames. Patch by MvL, test by Eli Bendersky.
2011-01-01 10:09:32 +00:00
Terry Reedy
574a3cf08a
Issue 6285: catch missing IDLE help file.
2011-01-01 02:28:54 +00:00
Terry Reedy
6739cc0821
Issue 6285: catch missing IDLE help file.
2011-01-01 02:25:36 +00:00
Raymond Hettinger
a673b1fd0e
Fix OrderedDict.setdefault() to work for subclasses that define __missing__().
2010-12-31 23:16:17 +00:00
R. David Murray
488b485e2b
Merged revisions 83089,87590 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83089 | brett.cannon | 2010-07-23 09:54:14 -0400 (Fri, 23 Jul 2010) | 4 lines
Test calendar.monthrange.
Closes issue 9342. Thanks John Chandler for the patch.
........
r87590 | r.david.murray | 2010-12-31 14:21:14 -0500 (Fri, 31 Dec 2010) | 4 lines
#9361 : add some tests for calendar.leapdays
Patch by John Chandler.
........
2010-12-31 19:29:08 +00:00
R. David Murray
1daaf9e68e
#9361 : add some tests for calendar.leapdays
...
Patch by John Chandler.
2010-12-31 19:21:14 +00:00
Vinay Sajip
7b0e86ef17
Issue #10788 : Changed test_logging setUp logic to provide more information.
2010-12-30 23:26:50 +00:00
Georg Brandl
076cbae4b9
Add the missing __main__.py in the turtledemo package. It seems to have been lost during some mass rename action (r86095).
2010-12-30 22:31:10 +00:00
Michael Foord
6f17e2df29
Issue 10786: unittest.TextTestRunner default stream no longer bound at import time
2010-12-30 19:36:29 +00:00
R. David Murray
5723d225f8
Merged revisions 87567 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87567 | r.david.murray | 2010-12-29 11:57:24 -0500 (Wed, 29 Dec 2010) | 2 lines
Fix a comment typo and update another comment to match Python3 reality
........
2010-12-29 19:03:53 +00:00
R. David Murray
4c1da4c2a8
Fix a comment typo and update another comment to match Python3 reality
2010-12-29 16:57:24 +00:00
Senthil Kumaran
e5f8e849c8
Merged revisions 87564 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87564 | senthil.kumaran | 2010-12-29 14:25:42 +0800 (Wed, 29 Dec 2010) | 3 lines
Fix Issue 10753 - Don't quote ;=, in the PATH_INFO envvar.
........
2010-12-29 06:29:58 +00:00
Senthil Kumaran
299fa4cb21
Fix Issue 10753 - Don't quote ;=, in the PATH_INFO envvar.
2010-12-29 06:25:42 +00:00
Brian Curtin
7ef28e8bd7
Close stdout, clear ResourceWarning
2010-12-29 02:41:07 +00:00
Brian Curtin
57160d7204
Fix #9333 on Windows XP, where os.symlink is not a possibility.
2010-12-29 02:04:28 +00:00
Brian Quinlan
251cc846f3
Does not install a logging handler. Fixes issue 10626.
2010-12-28 21:14:34 +00:00
Terry Reedy
bb53bb40e6
Issue 10738: Fix webbrowser.Opera.raise_opts value.
2010-12-28 19:50:27 +00:00
Terry Reedy
dad532f7de
Issue 10738: Fix webbrowser.Opera.raise_opts value.
2010-12-28 19:30:19 +00:00
R. David Murray
daa7ba038b
Merged revisions 87550 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87550 | r.david.murray | 2010-12-28 13:54:13 -0500 (Tue, 28 Dec 2010) | 8 lines
#9824 : encode , and ; in cookie values so that browsers don't split on them
There is a small chance of backward incompatibility here, but only for
non-SimpleCookie applications reading SimpleCookie generated cookies. Even
then, any such ap is likely to be handling escaped values already, and it would
take a fairly perverse implementation of unescaping to fail to unescape these
newly escaped chars, so the risk seems minimal.
........
2010-12-28 18:56:33 +00:00
R. David Murray
e05ca2aff4
#9824 : encode , and ; in cookie values so that browsers don't split on them
...
There is a small chance of backward incompatibility here, but only for
non-SimpleCookie applications reading SimpleCookie generated cookies. Even
then, any such ap is likely to be handling escaped values already, and it would
take a fairly perverse implementation of unescaping to fail to unescape these
newly escaped chars, so the risk seems minimal.
2010-12-28 18:54:13 +00:00
Brian Curtin
31e3b77fea
This file was obsolted by a number of adjustments to the os.symlink tests
...
on Windows, and is no longer needed by any tests or Lib/test/support.py
2010-12-28 17:12:43 +00:00
Senthil Kumaran
6c85838489
Merged revisions 87542 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87542 | senthil.kumaran | 2010-12-28 23:55:16 +0800 (Tue, 28 Dec 2010) | 3 lines
Fix Issue10759 - html.parser.unescape() fails on HTML entities with incorrect syntax
........
2010-12-28 16:10:56 +00:00
Senthil Kumaran
164540fee1
Fix Issue10759 - html.parser.unescape() fails on HTML entities with incorrect syntax
2010-12-28 15:55:16 +00:00
Alexander Belopolsky
18f6b1987f
Merged revisions 87442 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87442 | alexander.belopolsky | 2010-12-22 21:27:37 -0500 (Wed, 22 Dec 2010) | 1 line
Issue #10254 : Fixed a crash and a regression introduced by the implementation of PRI 29.
........
2010-12-28 15:42:23 +00:00
Brian Curtin
3b4499c5c7
Fix #9333 . The symlink function is always available now, raising OSError
...
when the user doesn't hold the symbolic link privilege rather than hiding it.
2010-12-28 14:31:47 +00:00
Victor Stinner
baab9d0bf6
Issue #10783 : Fix test_sys, pack('c', ' ') => pack('c', b' ')
2010-12-28 13:33:43 +00:00
Victor Stinner
da9ec995f6
Issue #10783 : struct.pack() doesn't encode implicitly unicode to UTF-8
...
* Replace "bytes" by "bytes object" in struct error messages
* Document the API change in What's new in Python 3.2
* Fix test_wave
* Remove also ugly implicit conversions in test_struct
2010-12-28 13:26:42 +00:00
Georg Brandl
b12fd63468
#10767 : update README in crashers; not all may have a bug entry and/or be fixed.
2010-12-28 11:06:07 +00:00
Georg Brandl
780d5e08c4
#10768 : fix ScrolledText widget construction, and make the example work from the interactive shell.
2010-12-28 10:56:20 +00:00
Georg Brandl
90b20675bd
#10777 : fix iteration over dict keys while mutating the dict.
2010-12-28 10:38:33 +00:00
R. David Murray
8e286c472b
#7056 : runtest and runtest_inner don't use testdir, so drop it from their sigs
...
I've only tested regular runs and -j runs. If I've broken anything
else I'm sure I'll hear about it sooner or later.
2010-12-27 20:09:32 +00:00
Vinay Sajip
7b60f4e949
Issue #10626 : test_logging now preserves logger disabled states.
2010-12-27 14:31:52 +00:00
Vinay Sajip
60b4df15d6
Issue #10774 : test_logging now removes temp files created during tests.
2010-12-27 11:18:52 +00:00
R. David Murray
17638d9435
Merged revisions 87508 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87508 | r.david.murray | 2010-12-26 23:31:48 -0500 (Sun, 26 Dec 2010) | 5 lines
Skip test that does not raise an error on Windows.
I'm assuming that the putative path from the malformed
pth file is simply not found and therefore ignored.
........
2010-12-27 04:36:07 +00:00
R. David Murray
ad4ccfdeb2
Skip test that does not raise an error on Windows.
...
I'm assuming that the putative path from the malformed
pth file is simply not found and therefore ignored.
2010-12-27 04:31:48 +00:00
R. David Murray
a6405235c9
Merged revisions 87501 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87501 | r.david.murray | 2010-12-26 19:03:13 -0500 (Sun, 26 Dec 2010) | 2 lines
Escape file path before searching for it in output via regex
........
2010-12-27 00:07:32 +00:00
R. David Murray
ab9d8d64a7
Escape file path before searching for it in output via regex
2010-12-27 00:03:13 +00:00
R. David Murray
6cb252fa14
Merged revisions 87497 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87497 | r.david.murray | 2010-12-26 14:54:29 -0500 (Sun, 26 Dec 2010) | 7 lines
#5258/#10642: print fn, line, traceback and continue when .pth file is broken
If a .pth file contained an error, it could cause a traceback in site.py,
terminating its processing. In 2.7 and 3.2, the interpreter will then not
start. Previously, a message would print saying to use -v to get the
traceback. In either case, the traceback generated for a failed .pth file did
not include the .pth filename, making it difficult to debug the problem. Now
site.py reports not only the .pth filename but also the line number causing the
error, and just skips the remainder of the file.
........
2010-12-26 22:24:54 +00:00
R. David Murray
b4ca59b783
#5258/#10642: print fn, line, traceback and continue when .pth file is broken
...
If a .pth file contained an error, it could cause a traceback in site.py,
terminating its processing. In 2.7 and 3.2, the interpreter will then not
start. Previously, a message would print saying to use -v to get the
traceback. In either case, the traceback generated for a failed .pth file did
not include the .pth filename, making it difficult to debug the problem. Now
site.py reports not only the .pth filename but also the line number causing the
error, and just skips the remainder of the file.
2010-12-26 19:54:29 +00:00
Victor Stinner
667d4b577f
Issue #10763 : subprocess.communicate() closes stdout and stderr if both are
...
pipes (bug specific to Windows).
Improve also the unit test: write a portable unit test.
2010-12-25 22:40:32 +00:00
Brian Quinlan
291151b7f4
Assign closed handles to None to make errors more obvious if they are used.
2010-12-25 00:18:27 +00:00
Brian Quinlan
a3015a6a82
Better reporting of test failures on Windows.
2010-12-24 23:10:41 +00:00
R. David Murray
dfd7eb0ba2
#1693546 : don't add quotes around RFC 2231 encoded values.
...
The RFC is bit hard to understand on this point, but the examples
clearly show that parameter values that are encoded according
to its charset/language rules don't have surrounding quotes, and
the ABNF does not allow for quotes. So when we produce such
encoded values, we no longer add quotes.
2010-12-24 22:36:49 +00:00
Raymond Hettinger
57bd00a15b
Adopt symmetric names for arguments (actual/expected --> first/second).
2010-12-24 21:51:48 +00:00
Raymond Hettinger
efbcb1b038
Keep helper functions private.
2010-12-24 11:24:00 +00:00
Raymond Hettinger
9d668dac68
Put diff output in useful order (when the elements were first seen).
2010-12-24 11:20:30 +00:00
Raymond Hettinger
f954217458
Add direct tests for the util functions.
2010-12-24 10:30:06 +00:00
Raymond Hettinger
93e233d6e5
Improve diff for assertCountEqual() to actually show the differing counts.
...
New output looks like this:
Traceback (most recent call last):
File "test.py", line 5, in test_ce
self.assertCountEqual('abracadabra xx', 'simsalabim xx')
AssertionError: Element counts were not equal:
Expected 5, got 2: 'a'
Expected 2, got 1: 'b'
Expected 0, got 2: 'i'
Expected 0, got 2: 'm'
Expected 0, got 1: 'l'
Expected 0, got 2: 's'
Expected 1, got 0: 'c'
Expected 1, got 0: 'd'
Expected 2, got 0: 'r'
2010-12-24 10:02:22 +00:00
Senthil Kumaran
1e991f2de5
Fix some mistakes- Issue3243 (r87399) Correcting the operator precendence
...
problem with Content-Length header and uncommenting the test.
2010-12-24 04:03:59 +00:00
Raymond Hettinger
c44befb82e
Fix docstring.
2010-12-24 00:58:34 +00:00
Raymond Hettinger
6518f5e780
Fix docs and comment for r87454.
2010-12-24 00:52:54 +00:00
Raymond Hettinger
83961245b4
Add test for r87454.
2010-12-24 00:48:47 +00:00
Benjamin Peterson
bc78e37d46
update comment
2010-12-23 23:45:39 +00:00
Éric Araujo
1696f822e8
Fix syntax typo
2010-12-23 23:18:41 +00:00
Terry Reedy
d149c6c89c
Issue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg to types_map.
...
Addition OKed by GB on IRC (R. David Murray). No backport.
2010-12-23 23:10:28 +00:00
Benjamin Peterson
31e8720324
kill some function imports
2010-12-23 22:53:42 +00:00
Benjamin Peterson
a91dd1e411
use native tenary condition
2010-12-23 22:49:38 +00:00
Benjamin Peterson
9e335fb3c5
Merged revisions 87455 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87455 | benjamin.peterson | 2010-12-23 16:17:42 -0600 (Thu, 23 Dec 2010) | 1 line
fix docstring
........
2010-12-23 22:20:16 +00:00
Benjamin Peterson
5793e6f4b0
fix docstring
2010-12-23 22:17:42 +00:00
Raymond Hettinger
d65a901aed
Fix buglet. If the input was an iterator, the fallback would occur after
...
part of the iterator had been consumed. Also, fix argument names which
did not match the docs and were a bit misleading.
2010-12-23 21:54:02 +00:00
R. David Murray
4a62e89728
#1155362 : allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz
...
Original patch by Thomas Herve.
2010-12-23 20:35:46 +00:00
R. David Murray
46c6fd605e
Merged revisions 87448 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines
#4496 : remove misleading comment and note that self.handlers is obsolete.
self.handlers is still used in one urllib2 test, but not by the code iteslf.
........
2010-12-23 19:47:37 +00:00
R. David Murray
25b8cca6e8
#4496 : remove misleading comment and note that self.handlers is obsolete.
...
self.handlers is still used in one urllib2 test, but not by the code iteslf.
2010-12-23 19:44:49 +00:00
Éric Araujo
a63c240847
Fix typo in superclass method name
2010-12-23 19:13:05 +00:00
Éric Araujo
413d7b4f24
Nits: use a real boolean, make one docstring more similar to the other ones
2010-12-23 18:44:31 +00:00
Éric Araujo
d699255b42
Fix small inaccuracy: there is no index function
2010-12-23 18:41:33 +00:00
Alexander Belopolsky
86f65d5dbb
Issue #10254 : Fixed a crash and a regression introduced by the implementation of PRI 29.
2010-12-23 02:27:37 +00:00
Antoine Pitrou
70df8f8c67
Fix ResourceWarning in test_normalization
2010-12-22 22:19:15 +00:00
R. David Murray
30f9c8c684
Merged revisions 87430 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87430 | r.david.murray | 2010-12-21 16:53:37 -0500 (Tue, 21 Dec 2010) | 9 lines
#4871 : check that zipfile password is bytes, and give useful error message.
Previously passing a string in as the password would fail either with
an assertion error or a TypeError with a confusing error message.
Note that a string can't be accepted since zipfile has no way to
guess what encoding should be used to turn it into bytes.
Patch by Victor Stinner.
........
2010-12-21 21:57:54 +00:00
R. David Murray
8d855d8304
#4871 : check that zipfile password is bytes, and give useful error message.
...
Previously passing a string in as the password would fail either with
an assertion error or a TypeError with a confusing error message.
Note that a string can't be accepted since zipfile has no way to
guess what encoding should be used to turn it into bytes.
Patch by Victor Stinner.
2010-12-21 21:53:37 +00:00
Antoine Pitrou
6cfc5124f2
Merged revisions 87427 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87427 | antoine.pitrou | 2010-12-21 22:20:59 +0100 (mar., 21 déc. 2010) | 3 lines
Issue #10750 : The `raw` attribute of buffered IO objects is now read-only.
........
2010-12-21 21:26:09 +00:00
Antoine Pitrou
7f8f41808b
Issue #10750 : The `raw` attribute of buffered IO objects is now read-only.
2010-12-21 21:20:59 +00:00
Raymond Hettinger
8ebe27f300
Deprecate assertDictContainsSubset()
2010-12-21 19:24:26 +00:00
R. David Murray
e0436bcb24
Make test_compileall more robust by using -S to keep sys.path minimized.
...
Try this again, hopefully the right way this time.
Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path. Having the tests call python
with -S should eliminate the system directories from the path.
2010-12-21 18:24:33 +00:00
R. David Murray
27c1914c1b
Merged revisions 87415 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87415 | r.david.murray | 2010-12-21 13:07:59 -0500 (Tue, 21 Dec 2010) | 4 lines
Fix the change made for issue 1243654.
Surprisingly, it turns out there was no test that exercised this code path.
........
2010-12-21 18:11:01 +00:00
R. David Murray
73a559d0c9
Fix the change made for issue 1243654.
...
Surprisingly, it turns out there was no test that exercised this code path.
2010-12-21 18:07:59 +00:00
R. David Murray
92812028f2
Revert incorrect patch made at the wrong time.
2010-12-20 19:04:51 +00:00
R. David Murray
bf9004483d
Make test_compileall more robust by using -S to keep sys.path minimized.
...
Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path. Having subprocess call python
with -S should eliminate the system directories from the path.
2010-12-20 18:08:59 +00:00
Georg Brandl
09a7df8301
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
2010-12-19 12:33:52 +00:00
Senthil Kumaran
7bc0d872dd
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.
2010-12-19 10:49:52 +00:00
Georg Brandl
8a60e94802
Bump to 3.2b2.
2010-12-19 10:30:28 +00:00
Georg Brandl
3de338f47e
Update pydoc topics.
2010-12-19 10:25:28 +00:00
Georg Brandl
cf8a209ab7
Temporarily skip test failing with newer ttk.
2010-12-19 10:17:46 +00:00
Georg Brandl
aedd2899c2
#6075 : make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by Kevin Walzer and Ned Deily.
2010-12-19 10:10:32 +00:00
Michael Foord
cca5be2e4c
Improvement to fix for issue 9926 to allow TestResult to be reused.
2010-12-19 04:07:28 +00:00
Michael Foord
f100dbd600
Fix minor issue in implementation of issue 10470.
2010-12-19 03:59:10 +00:00
Michael Foord
b3468f79ef
Issue 10611. Issue 9857. Improve the way exception handling, including test skipping, is done inside TestCase.run
2010-12-19 03:19:47 +00:00
Ezio Melotti
addc6f5a21
#10573 : use actual/expected consistently in unittest methods. The order of the args of assertCountEqual is also changed.
2010-12-18 20:00:04 +00:00
R. David Murray
63563cdf9d
#9286 : Fix the rfc822 parser to preserve whitespace in address local part.
...
Such addresses are not RFC compliant except under the 'obsolete syntax'
rules, but before this fix the whitespace was dropped from the input,
concatenating the pieces. That breaks one of the principles of the
email package, that of preserving the input as much as possible.
It also denies the application program the opportunity to apply its
own heuristics to interpretation of such non-compliant addresses.
It is possible users of the email package were depending on the local
part always being a single token, so this fix will not be backported.
2010-12-18 18:25:38 +00:00
Antoine Pitrou
ff1bbba92a
Merged revisions 87373,87381 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87373 | senthil.kumaran | 2010-12-18 17:55:23 +0100 (sam., 18 déc. 2010) | 3 lines
Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
........
r87381 | antoine.pitrou | 2010-12-18 18:59:18 +0100 (sam., 18 déc. 2010) | 3 lines
NEWS entry for r87373
........
2010-12-18 18:04:38 +00:00
Ezio Melotti
a2eb94b1cf
Merged revisions 87377 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87377 | ezio.melotti | 2010-12-18 18:31:58 +0100 (Sat, 18 Dec 2010) | 1 line
Use lowercase true/false in assertTrue/assertFalse messages.
........
2010-12-18 17:55:43 +00:00
Ezio Melotti
3044fa77a5
Use lowercase true/false in assertTrue/assertFalse messages.
2010-12-18 17:31:58 +00:00
R. David Murray
28b77ece82
Merged revisions 87374 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87374 | r.david.murray | 2010-12-18 12:19:10 -0500 (Sat, 18 Dec 2010) | 8 lines
#10404 : Use ctl-button-1 for context menus on OSX Idle.
This provides access to the context menus where they previously could
not be accessed due to the way OSX Tk binds buttons. It also
improves platform consistency.
Patch by Ned Deily.
........
2010-12-18 17:21:30 +00:00
R. David Murray
b68a7bc70c
#10404 : Use ctl-button-1 for context menus on OSX Idle.
...
This provides access to the context menus where they previously could
not be accessed due to the way OSX Tk binds buttons. It also
improves platform consistency.
Patch by Ned Deily.
2010-12-18 17:19:10 +00:00
Senthil Kumaran
5466bf1c94
Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
2010-12-18 16:55:23 +00:00
Ezio Melotti
9d254f7092
Merged revisions 87368 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87368 | ezio.melotti | 2010-12-18 15:59:43 +0100 (Sat, 18 Dec 2010) | 1 line
#5587 : add a repr to dict_proxy objects. Patch by David Stanek and Daniel Urban.
........
2010-12-18 15:06:45 +00:00
Ezio Melotti
ac53ab64a6
#5587 : add a repr to dict_proxy objects. Patch by David Stanek and Daniel Urban.
2010-12-18 14:59:43 +00:00
Steven Bethard
fd311a712d
Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2 on the tracker.
2010-12-18 11:19:23 +00:00
Łukasz Langa
71b37a5d6d
100% test coverage, better mapping protocol compatibility, some minor bugfixes
2010-12-17 21:56:32 +00:00
Antoine Pitrou
bc7f20cea4
Merged revisions 87341 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87341 | antoine.pitrou | 2010-12-17 18:42:16 +0100 (ven., 17 déc. 2010) | 4 lines
Issue #4188 : Avoid creating dummy thread objects when logging operations
from the threading module (with the internal verbose flag activated).
........
2010-12-17 17:44:45 +00:00
Antoine Pitrou
401edd69cf
Issue #4188 : Avoid creating dummy thread objects when logging operations
...
from the threading module (with the internal verbose flag activated).
2010-12-17 17:42:16 +00:00
Antoine Pitrou
988dbd7bc2
Issue #10711 : Remove HTTP 0.9 support from http.client. The `strict`
...
parameter to HTTPConnection and friends is deprecated.
2010-12-17 17:35:56 +00:00
R. David Murray
94f58c3a65
#10454 : clarify the compileall docs and help messages.
2010-12-17 16:29:07 +00:00
Senthil Kumaran
3396e8671d
Merged revisions 87329 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87329 | senthil.kumaran | 2010-12-17 12:48:45 +0800 (Fri, 17 Dec 2010) | 3 lines
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
........
2010-12-17 04:54:43 +00:00
Senthil Kumaran
dca5b86233
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
2010-12-17 04:48:45 +00:00
Łukasz Langa
b25a791802
configparser API cleanup: default values now sensible, slightly incompatible.
...
Backwards compatible alternative values possible as documented.
Done by Łukasz Langa, approved by Raymond and Fred.
2010-12-17 01:32:29 +00:00
Gregory P. Smith
ed16bf4aaa
assert that the regex given to assertRegex is non-empty.
2010-12-16 19:23:05 +00:00
R. David Murray
5317e9cd8d
#10719 : restore messages generated on invalid compileall args
...
Before the introduction of filename arguments to compileall it gave semi useful
messages about not being able to 'list' names that weren't valid directories.
This fix restores that behavior. In addition to the test for this case, the
patch also adds a test for the default behavior of compileall when no arguments
are provided, and fixes a bug in one of the previously added tests.
2010-12-16 19:08:51 +00:00
Antoine Pitrou
db848f1276
svnmerge fooled me. That test class already existed.
2010-12-16 17:17:40 +00:00
Antoine Pitrou
c5e548f6a5
Forgot to enable this test
2010-12-16 17:05:26 +00:00
Antoine Pitrou
3022ce1a14
Merged revisions 87317 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87317 | antoine.pitrou | 2010-12-16 17:48:36 +0100 (jeu., 16 déc. 2010) | 4 lines
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
for security reasons. Initial patch by Ross Lagerwall.
........
(also backport some tests)
2010-12-16 17:03:16 +00:00
Antoine Pitrou
c492437922
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
...
for security reasons. Initial patch by Ross Lagerwall.
2010-12-16 16:48:36 +00:00
Brian Curtin
1c76044ea0
Merged revisions 87306 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87306 | brian.curtin | 2010-12-15 21:24:49 -0600 (Wed, 15 Dec 2010) | 2 lines
EasyDialogs was removed in 3.x. fallback_getpass will always be the answer here.
........
2010-12-16 03:27:11 +00:00
Brian Curtin
ff47a133e1
EasyDialogs was removed in 3.x. fallback_getpass will always be the answer here.
2010-12-16 03:24:49 +00:00
Łukasz Langa
7f64c8a512
Broken ConfigParser removed, SafeConfigParser renamed to ConfigParser.
...
Life is beatiful once again.
2010-12-16 01:16:22 +00:00
Antoine Pitrou
4fef555e06
Make test_threadsignals more lax, and add notes
2010-12-15 23:38:50 +00:00
Antoine Pitrou
810023db3e
Issue #8844 : Regular and recursive lock acquisitions can now be interrupted
...
by signals on platforms using pthreads. Patch by Reid Kleckner.
2010-12-15 22:59:16 +00:00
Éric Araujo
5d899dddb2
Merged revisions 87280 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87280 | eric.araujo | 2010-12-15 22:07:22 +0100 (mer., 15 déc. 2010) | 2 lines
Fix build_ext with VS 8.0. Patch by Hirokazu Yamamoto (#9558 ).
........
2010-12-15 21:12:12 +00:00
Éric Araujo
60532bd6b6
Fix build_ext with VS 8.0. Patch by Hirokazu Yamamoto ( #9558 ).
2010-12-15 21:07:22 +00:00
Éric Araujo
7e2e321da3
Merged revisions 87277 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87277 | eric.araujo | 2010-12-15 21:26:30 +0100 (mer., 15 déc. 2010) | 2 lines
Fix wrong name in docstring and doc (#10693 ). Original patch by Eli Bendersky.
........
2010-12-15 20:30:51 +00:00
Éric Araujo
4433a5fdc0
Fix wrong name in docstring and doc ( #10693 ). Original patch by Eli Bendersky.
2010-12-15 20:26:30 +00:00
Terry Reedy
17a59252e8
Issue 10534, difflib: tweak doc; test new SequenceMatcher instance attributes; avoid unneeded lists of SM.b2j keys and items in .__chain_b. Do not backport.
2010-12-15 20:18:10 +00:00
Raymond Hettinger
96f3410ebe
Issue 10667: Fast path for collections.Counter
2010-12-15 16:30:37 +00:00
Senthil Kumaran
bd8f1458f8
TIMEOUT value change in URLTimeout Test. test.support.transient_internet has a
...
socket timeout of 30 when it checks for resource. Explicit overrding (like
setting the 10) wont exhibit consistent behavior when tests are outside context
manager. So, settting it 30.
2010-12-15 04:02:45 +00:00
R. David Murray
800dfee91a
Merged revisions 87251 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87251 | r.david.murray | 2010-12-14 18:06:25 -0500 (Tue, 14 Dec 2010) | 4 lines
#4236 : avoid possible Fatal Error when import is called from __del__
Patch by Simon Cross, crasher test code by Martin von Löwis.
........
2010-12-14 23:30:42 +00:00
R. David Murray
ce4b170c5a
#4236 : avoid possible Fatal Error when import is called from __del__
...
Patch by Simon Cross, crasher test code by Martin von Löwis.
2010-12-14 23:06:25 +00:00
R. David Murray
95333e3aa9
More comprehensive compileall cli tests, and fixes.
2010-12-14 22:32:50 +00:00
Gregory P. Smith
c6637a507a
SIGCHLD is a more portable name than SIGCLD (OSX has no SIGCLD).
2010-12-14 18:20:45 +00:00
Gregory P. Smith
31d04f2183
SIGCHLD is a more portable name than SIGCLD. (OSX has no SIGCLD)
2010-12-14 18:18:49 +00:00