Serhiy Storchaka
1dd49824df
Issue #23681 : The -b option now affects comparisons of bytes with int.
2015-03-20 16:54:57 +02:00
Serhiy Storchaka
ee4c0b9dcf
Issue #23681 : Fixed Python 2 to 3 poring bugs.
...
Indexing bytes retiurns an integer, not bytes.
2015-03-20 16:48:02 +02:00
Serhiy Storchaka
74a49ac3f5
Issue #23681 : Fixed Python 2 to 3 poring bugs.
...
Indexing bytes retiurns an integer, not bytes.
2015-03-20 16:46:19 +02:00
Victor Stinner
268225f154
Issue #23715 : Fix test_script_helper
2015-03-20 14:02:33 +01:00
Victor Stinner
57d516bd6b
Issue #23696 : Remove test on ZipImportError.__context__ because the context is
...
None on Windows.
When the file is not readable, the error occurs at open on UNIX. On Windows,
the error only occurs at the first operation on the open file. It would require
to many changes to set __context__ to an OSError for all file operations, for a
little benefit (__context__ is almost never used).
2015-03-20 13:48:36 +01:00
Victor Stinner
03129230c9
Issue #23715 : Fix test_eintr, skip tests on signal.sigwaitinfo() and
...
signal.sigtimedwait() if functions are missing
2015-03-20 13:42:52 +01:00
Victor Stinner
1335ca5053
Issue #23715 : Enhance test.script_helper to investigate test_eintr failure
...
If Python failed, show also stdout in the assertion error.
2015-03-20 13:38:08 +01:00
Victor Stinner
a453cd8d85
Issue #23715 : signal.sigwaitinfo() and signal.sigtimedwait() are now retried
...
when interrupted by a signal not in the *sigset* parameter, if the signal
handler does not raise an exception. signal.sigtimedwait() recomputes the
timeout with a monotonic clock when it is retried.
Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't
raise InterruptedError anymore if it is interrupted by a signal not in its
sigset parameter.
2015-03-20 12:54:28 +01:00
Victor Stinner
fbd6f9ed12
Issue #23696 : Chain ZipImportError to the OSError
2015-03-20 10:52:25 +01:00
Serhiy Storchaka
8490f5acfe
Issue #23001 : Few functions in modules mmap, ossaudiodev, socket, ssl, and
...
codecs, that accepted only read-only bytes-like object now accept writable
bytes-like object too.
2015-03-20 09:00:36 +02:00
Victor Stinner
9a8089b32a
Issue #23646 : Enhance precision of time.sleep() and socket timeout when
...
interrupted by a signal
Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro.
The _PyTime_ADD_SECONDS only supported an integer number of seconds, the
_PyTime_AddDouble() has subsecond resolution.
2015-03-20 01:42:20 +01:00
Antoine Pitrou
31084ba528
Issue #23632 : Memoryviews now allow tuple indexing (including for multi-dimensional memoryviews).
2015-03-19 23:29:36 +01:00
Victor Stinner
9eb57c5fa5
Issue #22181 : The availability of the getrandom() is now checked in configure,
...
and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define.
Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
2015-03-19 22:21:49 +01:00
Victor Stinner
79d68f929d
Issue #23646 : If time.sleep() is interrupted by a signal, the sleep is now
...
retried with the recomputed delay, except if the signal handler raises an
exception (PEP 475).
Modify also test_signal to use a monotonic clock instead of the system clock.
2015-03-19 21:54:09 +01:00
Serhiy Storchaka
fc7344a792
Issue #23136 : _strptime now uniformly handles all days in week 0, including
...
Jan 30 of previous year. Based on patch by Jim Carroll.
2015-03-19 19:14:15 +02:00
Serhiy Storchaka
423feea01e
Issue #23136 : _strptime now uniformly handles all days in week 0, including
...
Jan 30 of previous year. Based on patch by Jim Carroll.
2015-03-19 19:13:37 +02:00
Serhiy Storchaka
4f418d3671
Issue #23700 : Iterator of NamedTemporaryFile now keeps a reference to
...
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
2015-03-19 15:24:27 +02:00
Serhiy Storchaka
56cefa69ee
Issue #23700 : Iterator of NamedTemporaryFile now keeps a reference to
...
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
2015-03-19 15:23:15 +02:00
Ethan Furman
482fe0477e
issue23673
...
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
2015-03-18 18:19:30 -07:00
Ethan Furman
24e837f231
issue23673
...
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
2015-03-18 17:27:57 -07:00
Antoine Pitrou
52a05ab524
Issue #23353 : improve exceptions tests for generators
2015-03-18 22:23:40 +01:00
Antoine Pitrou
c4c19b3938
Issue #23353 : improve exceptions tests for generators
2015-03-18 22:22:46 +01:00
Serhiy Storchaka
6c32585f67
Restored backward compatibility of pickling http.cookies.Morsel. It was
...
broken after converting instance attributes to properies in issue #2211 .
2015-03-18 18:03:40 +02:00
Serhiy Storchaka
9c1a9b2657
Issue #2211 : Updated the implementation of the http.cookies.Morsel class.
...
Setting attributes key, value and coded_value directly now is deprecated.
update() and setdefault() now transform and check keys. Comparing for
equality now takes into account attributes key, value and coded_value.
copy() now returns a Morsel, not a dict. repr() now contains all attributes.
Optimized checking keys and quoting values. Added new tests.
Original patch by Demian Brecht.
2015-03-18 10:59:57 +02:00
Vinay Sajip
3505bd82a9
Issue #23207 : merged fix from 3.4.
2015-03-18 08:49:57 +00:00
Vinay Sajip
d55436ace3
Issue #23207 : Improved kwarg validation.
2015-03-18 08:47:58 +00:00
Robert Collins
302dbc6792
Issue #18983 : Allow selection of output units in timeit.
...
This allows manual selection of a specific unit such as usecs rather than the
use of a heuristic. This is intended to aid machine processing of timeit
output.
Patch by Serhiy Storchaka.
2015-03-18 09:54:50 +13:00
Ned Deily
ab6b9f8a5b
Issue #22585 : make URandomFDTests test case actually run
2015-03-17 04:30:08 -07:00
Victor Stinner
0c2fd89777
Revert changeset d927047b1d8eb87738676980a24930d053ba2150
...
Sorry, it was a mistake, the patch is still under review: issue #23646 .
2015-03-17 10:49:17 +01:00
Victor Stinner
9c182a1e25
Issue #23680 : Reduce risk of race condition in check_interrupted_write() of
...
test_io. Allocate the large data before scheduling an alarm in 1 second.
On very slow computer, the alarm rings sometimes during the memory allocation.
2015-03-16 18:03:06 +01:00
Victor Stinner
6d3c09f284
Issue #23680 : Reduce risk of race condition in check_interrupted_write_retry()
...
of test_io. Allocate the large data before scheduling an alarm in 1 second.
On very slow computer, the alarm rings sometimes during the memory allocation.
2015-03-16 17:57:49 +01:00
Serhiy Storchaka
b8a78d3d85
Use non-zero and non-last positions in error handler tests.
2015-03-16 08:31:38 +02:00
Serhiy Storchaka
05d54730da
Use non-zero and non-last positions in error handler tests.
2015-03-16 08:29:47 +02:00
Robert Collins
bbb8ade904
Issue #23631 : Fix traceback.format_list when a traceback has been mutated.
2015-03-16 15:27:16 +13:00
Serhiy Storchaka
93f4d4c1d6
Increased coverage of standard codec error handlers.
2015-03-15 23:43:34 +02:00
Serhiy Storchaka
98d156b2b2
Increased coverage of standard codec error handlers.
2015-03-15 23:41:37 +02:00
Berker Peksag
102029dfd6
Issue #2052 : Add charset parameter to HtmlDiff.make_file().
2015-03-15 01:18:47 +02:00
Brett Cannon
cc4dfc1b75
Issue #23491 : Implement PEP 441: Improving Python Zip Application Support
...
Thanks to Paul Moore for the PEP and implementation.
2015-03-13 10:40:49 -04:00
Victor Stinner
ff2a661ef0
Issue #23566 : Skip "fd" tests of test_faulthandler on Windows
...
subprocess doesn't support pass_fds on Windows.
2015-03-13 11:01:30 +01:00
Serhiy Storchaka
577fc4e87f
Issue #23138 : Fixed parsing cookies with absent keys or values in cookiejar.
...
Patch by Demian Brecht.
2015-03-13 09:05:01 +02:00
Serhiy Storchaka
79fbeee237
Issue #23051 : multiprocessing.Pool methods imap() and imap_unordered() now
...
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
2015-03-13 08:25:26 +02:00
Serhiy Storchaka
a60c2fe480
Issue #23641 : Cleaned out legacy dunder names from tests and docs.
...
Fixed 2 to 3 porting bug in pynche.ColorDB.
2015-03-12 21:56:08 +02:00
Berker Peksag
18987a11ce
Issue #20617 : Remove unused import in test_ssl.
...
Patch by Mark Lawrence.
2015-03-12 18:50:49 +02:00
Victor Stinner
945c82eea3
test
2015-03-12 16:19:01 +01:00
Serhiy Storchaka
f7cc3fccad
Issue #23138 : Fixed parsing cookies with absent keys or values in cookiejar.
...
Patch by Demian Brecht.
2015-03-13 09:09:35 +02:00
Serhiy Storchaka
63623ac252
Issue #23051 : multiprocessing.Pool methods imap() and imap_unordered() now
...
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
Potts.
2015-03-13 08:30:33 +02:00
Serhiy Storchaka
c2ccce791c
Issue #23641 : Cleaned out legacy dunder names from tests and docs.
...
Fixed 2 to 3 porting bug in pynche.ColorDB.
Added few tests for __truediv__, __floordiv__ and __matmul__.
2015-03-12 22:01:30 +02:00
Berker Peksag
4a0e14730b
Issue #20617 : Remove unused import in test_ssl.
...
Patch by Mark Lawrence.
2015-03-12 18:51:16 +02:00
Victor Stinner
95bb714ff7
Issue #23566 : enable(), register(), dump_traceback() and dump_traceback_later()
...
functions of faulthandler now accept file descriptors. Patch by Wei Wu.
2015-03-12 15:32:03 +01:00
Victor Stinner
ebaa81f3b1
Merge 3.4 (test_os)
2015-03-12 10:32:20 +01:00
Victor Stinner
0561c53d78
Issue #23605 : Refactor os.walk() tests to also run them on os.fwalk()
2015-03-12 10:28:24 +01:00
Serhiy Storchaka
b669bfc2be
Issue #22928 : Disabled HTTP header injections in http.client.
...
Original patch by Demian Brecht.
2015-03-12 11:15:15 +02:00
Serhiy Storchaka
a112a8ae47
Issue #22928 : Disabled HTTP header injections in http.client.
...
Original patch by Demian Brecht.
2015-03-12 11:13:36 +02:00
Serhiy Storchaka
91427733ea
Issue #23192 : Fixed generator lambdas. Patch by Bruno Cauet.
2015-03-11 18:22:29 +02:00
Serhiy Storchaka
c775ad615a
Issue #23192 : Fixed generator lambdas. Patch by Bruno Cauet.
2015-03-11 18:20:35 +02:00
Ethan Furman
62e977f1b6
Close issue23467: add %r compatibility to bytes and bytearray
2015-03-11 08:17:00 -07:00
Antoine Pitrou
63afdaa110
Issue #23629 : Fix the default __sizeof__ implementation for variable-sized objects.
2015-03-10 22:35:24 +01:00
Antoine Pitrou
a654510150
Issue #23629 : Fix the default __sizeof__ implementation for variable-sized objects.
2015-03-10 22:32:00 +01:00
Benjamin Peterson
5d2d63ed7d
merge 3.4
2015-03-09 10:37:59 -04:00
Benjamin Peterson
101447b3fe
fix up import style
2015-03-09 10:37:50 -04:00
Antoine Pitrou
5bd7bf5bab
Issue #22980 : Under Linux, C extensions now include bitness in the file name,
...
to make it easy to test 32-bit and 64-bit builds in the same working tree.
2015-03-08 20:43:10 +01:00
Serhiy Storchaka
cfb5b87860
Issue #21619 : Cleaned up test_broken_pipe_cleanup.
...
Patch by Martin Panter.
2015-03-08 09:17:28 +02:00
Serhiy Storchaka
f87afb0381
Issue #21619 : Cleaned up test_broken_pipe_cleanup.
...
Patch by Martin Panter.
2015-03-08 09:16:40 +02:00
Steve Dower
d5a0be6fc0
Suppress assert dialogs in test_os
2015-03-07 21:25:54 -08:00
Steve Dower
79938f22ef
Suppress assert dialogs in test_cmd_line.
2015-03-07 20:32:16 -08:00
Victor Stinner
6036e4431d
Issue #22524 : New os.scandir() function, part of the PEP 471: "os.scandir()
...
function -- a better and faster directory iterator". Patch written by Ben
Hoyt.
2015-03-08 01:58:04 +01:00
Antoine Pitrou
adb351fcea
Issue #20876 : correctly close temporary file in test.support.fs_is_case_insensitive()
2015-03-08 00:18:29 +01:00
Antoine Pitrou
e3207fe86b
Issue #20876 : correctly close temporary file in test.support.fs_is_case_insensitive()
2015-03-08 00:15:05 +01:00
Serhiy Storchaka
88f64f392c
Issue #23103 : Reduced the memory consumption of IPv4Address and IPv6Address.
2015-03-07 20:08:34 +02:00
Serhiy Storchaka
c0a23e6320
Issue #21793 : BaseHTTPRequestHandler again logs response code as numeric,
...
not as stringified enum. Patch by Demian Brecht.
2015-03-07 11:51:37 +02:00
Serhiy Storchaka
eef20de744
Issue #22853 : Added regression test for using multiprocessing.Queue at import
...
time. Patch by Davin Potts.
2015-03-06 23:33:51 +02:00
Serhiy Storchaka
f8904e99c7
Issue #22853 : Added regression test for using multiprocessing.Queue at import
...
time. Patch by Davin Potts.
2015-03-06 23:32:54 +02:00
Benjamin Peterson
f01c782960
merge 3.4
2015-03-06 09:10:45 -05:00
Benjamin Peterson
c19ed37579
remove redundant test
2015-03-06 09:10:26 -05:00
Benjamin Peterson
abda8ddd3e
merge 3.4 ( #23590 )
2015-03-06 09:09:46 -05:00
Benjamin Peterson
a915723dc7
fix potential refleak in PyFloat_AsDouble ( closes #23590 )
2015-03-06 09:08:44 -05:00
Robert Collins
d7c7e0ef69
Issue #22936 : Make it possible to show local variables in tracebacks.
2015-03-05 20:28:52 +13:00
Benjamin Peterson
3e2500d6db
merge 3.4
2015-03-04 23:20:23 -05:00
Benjamin Peterson
c3d9c5ca0a
adjust test_crl_check for trusted first being default
2015-03-04 23:18:48 -05:00
Benjamin Peterson
de8eca4638
merge 3.4
2015-03-04 22:50:25 -05:00
Benjamin Peterson
990fcaac3c
expose X509_V_FLAG_TRUSTED_FIRST
2015-03-04 22:49:41 -05:00
Victor Stinner
3737e600f4
Merge 3.4 (test_subprocess)
2015-03-05 02:40:17 +01:00
Victor Stinner
20f4bd4a04
Issue #21619 : Try to fix test_broken_pipe_cleanup()
2015-03-05 02:38:41 +01:00
Robert Collins
07ff16733e
Fix brownbag in issue 17911 commit
2015-03-05 12:26:00 +13:00
Robert Collins
6bc2c1e7eb
Issue #17911 : traceback module overhaul
...
Provide a way to seed the linecache for a PEP-302 module without actually
loading the code.
Provide a new object API for traceback, including the ability to not lookup
lines at all until the traceback is actually rendered, without any trace of the
original objects being kept alive.
2015-03-05 12:07:57 +13:00
Serhiy Storchaka
5e0fd95e3b
Added more tests for urllib.parse utility functions.
...
These functions are not documented but used in third-party code.
2015-03-02 16:33:08 +02:00
Serhiy Storchaka
9270be7662
Added more tests for urllib.parse utility functions.
...
These functions are not documented but used in third-party code.
2015-03-02 16:32:29 +02:00
Berker Peksag
a401257411
Issue #23527 : Update Gmail port number for STARTTLS to 587.
...
Patch by Alex Shkop.
2015-03-02 07:41:00 +02:00
Berker Peksag
ed0392ae06
Issue #23527 : Update Gmail port number for STARTTLS to 587.
...
Patch by Alex Shkop.
2015-03-02 07:40:36 +02:00
Berker Peksag
ccac023d65
Issue #23477 : Improve test coverage of wsgiref.simple_server.
...
The test checks that the environ argument contains correct headers,
querystring and path information.
Patch by Alex Shkop.
2015-03-02 06:54:27 +02:00
Berker Peksag
659f631a5e
Issue #23477 : Improve test coverage of wsgiref.simple_server.
...
The test checks that the environ argument contains correct headers,
querystring and path information.
Patch by Alex Shkop.
2015-03-02 06:53:33 +02:00
Berker Peksag
fc080fcc7c
Issue #23387 : Skip test_issue16464 if it raises an 5xx error.
...
Also, remove support.run_doctest() since there is no doctests in
test_urllib2 and urllib.request.
2015-03-02 06:01:37 +02:00
Berker Peksag
bcdfc6a1fa
Issue #23387 : Skip test_issue16464 if it raises an 5xx error.
...
Also, remove support.run_doctest() since there is no doctests in
test_urllib2 and urllib.request.
2015-03-02 06:01:01 +02:00
Alexander Belopolsky
e49af34151
Issue #7830 : Flatten nested functools.partial.
2015-03-01 15:08:17 -05:00
Serhiy Storchaka
3de4aae1d0
Fixed pydoc tests when run with -OO.
2015-03-01 15:32:17 +02:00
Serhiy Storchaka
4c094e5fd5
Fixed pydoc tests when run with -OO.
2015-03-01 15:31:36 +02:00
Serhiy Storchaka
1c205518a3
Issue #19980 : Improved help() for non-recognized strings. help('') now
...
shows the help on str. help('help') now shows the help on help().
Original patch by Mark Lawrence.
2015-03-01 00:42:54 +02:00
Alexander Belopolsky
184291aeb7
Fixes #23521 : Corrected pure python implementation of timedelta division.
...
* Eliminated OverflowError from timedelta * float for some floats;
* Corrected rounding in timedlta true division.
2015-02-28 10:44:47 -05:00
Alexander Belopolsky
24d3deefcf
Fixes #23521 : Corrected pure python implementation of timedelta division.
...
* Eliminated OverflowError from timedelta * float for some floats;
* Corrected rounding in timedlta true division.
2015-02-28 10:41:57 -05:00
Serhiy Storchaka
6ab0ec9352
Fixed a test for issue #21619 on Windows.
...
On Windows an OSError with errno=EINVAL is raised.
2015-02-28 13:28:19 +02:00
Serhiy Storchaka
cf265fd02a
Fixed a test for issue #21619 on Windows.
...
On Windows an OSError with errno=EINVAL is raised.
2015-02-28 13:27:54 +02:00
Serhiy Storchaka
86ba765705
Issue #21619 : Popen objects no longer leave a zombie after exit in the with
...
statement if the pipe was broken. Patch by Martin Panter.
2015-02-28 12:45:00 +02:00
Serhiy Storchaka
ab900c21fc
Issue #21619 : Popen objects no longer leave a zombie after exit in the with
...
statement if the pipe was broken. Patch by Martin Panter.
2015-02-28 12:43:08 +02:00
Brett Cannon
8004e8577c
Issue #22834 : Drop a redundant comment and use errno instead of an
...
integer.
Thanks to Serhiy Storchaka and Martin Panter for the suggestions.
2015-02-27 12:13:35 -05:00
Victor Stinner
69899e6f3f
Merge 3.4 (httplib)
2015-02-27 17:47:40 +01:00
Victor Stinner
b389b48265
Issue #23526 : Fix ResourceWarning in test_httplib. Patch written by Alex Shkop.
2015-02-27 17:47:23 +01:00
Raymond Hettinger
daf57f25e5
Bump the blocksize up from 62 to 64 to speed up the modulo calculation.
...
Remove the old comment suggesting that it was desireable to have
blocksize+2 as a multiple of the cache line length. That would
have made sense only if the block structure start point was always
aligned to a cache line boundary. However, the memory allocations
are 16 byte aligned, so we don't really have control over whether
the struct spills across cache line boundaries.
2015-02-26 23:21:29 -08:00
Antoine Pitrou
e71258a0e6
Issue #15955 : Add an option to limit the output size in bz2.decompress().
...
Patch by Nikolaus Rath.
2015-02-26 13:08:07 +01:00
Benjamin Peterson
4fa49727d7
merge 3.4
2015-02-25 16:47:20 -05:00
Benjamin Peterson
ed135f46ec
remove unused import
2015-02-25 16:47:14 -05:00
Steve Dower
c55a316cff
Issue 23314: SuppressCrashReports now disables CRT assertions
...
SuppressCrashReports should be used in test subprocesses that test invalid conditions.
2015-02-23 07:56:13 -08:00
Serhiy Storchaka
0f88891809
Broke reference loops in tests added in issue #5700 .
2015-02-23 00:31:33 +02:00
Serhiy Storchaka
c26a1a490f
Broke reference loops in tests added in issue #5700 .
2015-02-23 00:28:38 +02:00
Serhiy Storchaka
a3369a524c
Issues #814253 , #9179 : Warnings now are raised when group references and
...
conditional group references are used in lookbehind assertions in regular
expressions.
2015-02-21 12:08:52 +02:00
Serhiy Storchaka
4eea62fd2e
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2015-02-21 10:07:35 +02:00
Serhiy Storchaka
df80706f14
Issue #23215 : Multibyte codecs with custom error handlers that ignores errors
...
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.
2015-02-21 01:21:08 +02:00
Serhiy Storchaka
a1543cdcd6
Issue #23215 : Multibyte codecs with custom error handlers that ignores errors
...
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.
2015-02-21 01:19:58 +02:00
Serhiy Storchaka
254dd59068
Issue #5700 : io.FileIO() called flush() after closing the file.
...
flush() was not called in close() if closefd=False.
2015-02-21 00:35:53 +02:00
Serhiy Storchaka
a3712a9a6c
Issue #5700 : io.FileIO() called flush() after closing the file.
...
flush() was not called in close() if closefd=False.
2015-02-21 00:35:09 +02:00
Serhiy Storchaka
7065f376e0
Issue #23374 : Fixed pydoc failure with non-ASCII files when stdout encoding
...
differs from file system encoding (e.g. on Mac OS).
2015-02-20 23:47:09 +02:00
Serhiy Storchaka
5e3d7a401d
Issue #23374 : Fixed pydoc failure with non-ASCII files when stdout encoding
...
differs from file system encoding (e.g. on Mac OS).
2015-02-20 23:46:06 +02:00
Brett Cannon
16cd19c8a2
Issue #22834 : Fix a failing test under Solaris due to the platform not
...
allowing the deletion of the cwd.
Thanks to Martin Panter for the initial fix.
2015-02-20 09:48:18 -05:00
Berker Peksag
abbf0f40bb
Issue #23442 : Rename two member names to stay backward compatible
...
with the constants in http.client.
Initial patch by Demian Brecht.
2015-02-20 14:57:31 +02:00
Berker Peksag
8e28679417
Issue #23439 : Add missing entries to http.client.__all__.
...
Also, document the LineTooLong exception since it can be raised by
the members of public API (e.g. http.client.HTTPResponse).
Patch by Martin Panter.
2015-02-20 09:45:05 +02:00
Berker Peksag
babc688180
Issue #23439 : Add missing entries to http.client.__all__.
...
Also, document the LineTooLong exception since it can be raised by
the members of public API (e.g. http.client.HTTPResponse).
Patch by Martin Panter.
2015-02-20 09:39:38 +02:00
Serhiy Storchaka
8aba316fea
Issue #23474 : Enhanced locale testing.
2015-02-18 08:05:05 +02:00
Serhiy Storchaka
095458596d
Issue #23474 : Enhanced locale testing.
2015-02-18 08:04:37 +02:00
Benjamin Peterson
1130c7f693
merge 3.4 ( #23410 )
2015-02-17 21:13:30 -05:00
Benjamin Peterson
70e2847347
document the requestline and close_connection attributes, use real booleans, and add tests ( closes #23410 )
...
Patch by Martin Panter.
2015-02-17 21:11:10 -05:00
Victor Stinner
a634433a00
Merge 3.4 (asyncio)
2015-02-17 23:36:19 +01:00
Victor Stinner
e7a2f64435
asyncio: Fix warning in test_close_kill_running()
...
Read process exit status to avoid the "Caught subprocess termination from
unknown pid" message.
2015-02-17 23:36:02 +01:00
Victor Stinner
7cbb78cd97
Merge 3.4 (asyncio)
2015-02-17 22:55:36 +01:00
Victor Stinner
4088ad9dce
Issue #23475 , asyncio: Fix test_close_kill_running()
...
Really kill the child process, don't mock completly the Popen.kill() method.
This change fix memory leaks and reference leaks.
2015-02-17 22:54:11 +01:00
Victor Stinner
4cb814c7e1
asyncio, Tulip issue 220: Merge JoinableQueue with Queue.
...
Merge JoinableQueue with Queue. To more closely match the standard Queue,
asyncio.Queue has "join" and "task_done". JoinableQueue is deleted.
Docstring for Queue.join shouldn't mention threads.
Restore JoinableQueue as a deprecated alias for Queue. To more closely match
the standard Queue, asyncio.Queue has "join" and "task_done". JoinableQueue
remains as a deprecated alias for Queue to avoid needlessly breaking too much
code that depended on it.
Patch written by A. Jesse Jiryu Davis <jesse@mongodb.com>.
2015-02-17 22:53:28 +01:00
Serhiy Storchaka
483405bcca
Issue #22883 : Got rid of outdated references to PyInt and PyString in comments.
2015-02-17 10:14:30 +02:00
Benjamin Peterson
77c041ba64
merge 3.4 ( #21548 )
2015-02-16 19:45:42 -05:00
Benjamin Peterson
54237f9fea
fix pydoc.apropos and pydoc.synopsis on modules with empty docstrings ( #21548 )
...
Patch by Yuyang Guo and Berker Peksag.
2015-02-16 19:45:01 -05:00
Serhiy Storchaka
43036a66c3
Fixed sizeof tests for ElementTree (issue #23450 ).
2015-02-16 23:58:46 +02:00
Serhiy Storchaka
a9e00d13cd
Issue #20069 : Fixed test_os on Solaris: error message is platform depended.
2015-02-16 08:35:18 +02:00
Berker Peksag
a9e2c8ecd6
Issue #17753 : effective_ids unavailable on Windows.
2015-02-16 04:36:43 +02:00
Berker Peksag
e1efc07a30
Issue #17753 : effective_ids unavailable on Windows.
2015-02-16 04:36:18 +02:00
Serhiy Storchaka
23edd49e5b
Issue #22885 : Fixed arbitrary code execution vulnerability in the dbm.dumb
...
module. Original patch by Claudiu Popa.
2015-02-16 00:32:41 +02:00
Serhiy Storchaka
74eb8b2d1a
Issue #22885 : Fixed arbitrary code execution vulnerability in the dbm.dumb
...
module. Original patch by Claudiu Popa.
2015-02-16 00:30:43 +02:00
Antoine Pitrou
c481bfb3f6
Issue #23239 : ssl.match_hostname() now supports matching of IP addresses.
2015-02-15 18:12:20 +01:00
Antoine Pitrou
2d07b85585
Issue #23146 : Fix mishandling of absolute Windows paths with forward slashes in pathlib.
...
Detected and fixed by Serhiy.
2015-02-15 18:06:54 +01:00
Antoine Pitrou
57fffd6f99
Issue #23146 : Fix mishandling of absolute Windows paths with forward slashes in pathlib.
...
Detected and fixed by Serhiy.
2015-02-15 18:03:59 +01:00
Serhiy Storchaka
90caf017ee
Issue #19681 : Test the repr of partial with more than one keyword argument.
2015-02-15 16:22:11 +02:00
Serhiy Storchaka
0aa74e10bb
Issue #19681 : Test the repr of partial with more than one keyword argument.
2015-02-15 16:20:47 +02:00
Serhiy Storchaka
d362c21264
Use pickled data compatible with Python 2 for testing protocols 0-2.
2015-02-15 14:10:24 +02:00
Serhiy Storchaka
fa310ee3a9
Use pickled data compatible with Python 2 for testing protocols 0-2.
2015-02-15 14:10:03 +02:00
Serhiy Storchaka
5fd174a78d
Use os.devnull instead of hardcoded '/dev/null'.
2015-02-15 14:03:11 +02:00
Serhiy Storchaka
56abe39052
Merge heads
2015-02-15 14:02:15 +02:00
Serhiy Storchaka
85c3033670
Use os.devnull instead of hardcoded '/dev/null'.
2015-02-15 13:58:23 +02:00
Serhiy Storchaka
2307287c92
Issue #17753 : Skip test_zipfile tests which require write access to test
...
and email.test.
2015-02-14 23:06:42 +02:00
Serhiy Storchaka
db724fe994
Issue #17753 : Skip test_zipfile tests which require write access to test
...
and email.test.
2015-02-14 23:04:35 +02:00
Serhiy Storchaka
86a35bcba9
Issue #22844 : Fized test_gdb failure on Debian Wheezy for Z.
...
Patch by David Edelsohn.
2015-02-14 22:45:15 +02:00
Serhiy Storchaka
6b688d8162
Issue #22844 : Fized test_gdb failure on Debian Wheezy for Z.
...
Patch by David Edelsohn.
2015-02-14 22:44:35 +02:00
Serhiy Storchaka
a750ce3325
Issue #19105 : pprint now more efficiently uses free space at the right.
2015-02-14 10:55:19 +02:00
Berker Peksag
8089cd642f
Issue #14910 : Add allow_abbrev parameter to argparse.ArgumentParser.
...
Patch by Jonathan Paugh, Steven Bethard, paul j3 and Daniel Eriksson.
2015-02-14 01:39:17 +02:00
Berker Peksag
0fe6325acf
Issue #21717 : tarfile.open() now supports 'x' (exclusive creation) mode.
2015-02-13 21:02:12 +02:00
Berker Peksag
6767757589
Issue #23418 : Add missing entries to http.server.__all__.
...
Patch by Martin Panter.
2015-02-13 20:48:41 +02:00
Berker Peksag
366c570d1f
Issue #23418 : Add missing entries to http.server.__all__.
...
Patch by Martin Panter.
2015-02-13 20:48:15 +02:00
Serhiy Storchaka
2eab85b7a2
Issue #21849 : Ported from 2.7 tests for non-ASCII data.
2015-02-13 15:19:08 +02:00
Serhiy Storchaka
a25c542c47
Issue #21849 : Ported from 2.7 tests for non-ASCII data.
2015-02-13 15:13:33 +02:00
Victor Stinner
4163cc0d9f
Merge 3.4 (asyncio)
2015-02-10 14:49:56 +01:00
Victor Stinner
8e36812e27
asyncio: BaseSubprocessTransport.close() doesn't try to kill the process if it
...
already finished
2015-02-10 14:49:32 +01:00
Serhiy Storchaka
4bdcfce512
Issue #23421 : Fixed compression in tarfile CLI. Patch by wdv4758h.
2015-02-10 08:47:10 +02:00
Serhiy Storchaka
832dd5f0d6
Issue #23421 : Fixed compression in tarfile CLI. Patch by wdv4758h.
2015-02-10 08:45:53 +02:00
Vinay Sajip
365701add9
Added respect_handler_level to QueueListener.
2015-02-09 19:49:00 +00:00
Charles-François Natali
26dd5edae8
Fix whitespace.
2015-02-07 13:29:15 +00:00
Charles-François Natali
6e6c59b508
Issue #23285 : PEP 475 -- Retry system calls failing with EINTR.
2015-02-07 13:27:50 +00:00
Berker Peksag
bf5e9604cc
Issue #20289 : cgi.FieldStorage() now supports the context management protocol.
2015-02-06 10:21:37 +02:00
Serhiy Storchaka
6cfb61f163
Issue #23392 : Added tests for marshal C API that works with FILE*.
2015-02-06 09:00:44 +02:00
Serhiy Storchaka
b51813403f
Issue #23392 : Added tests for marshal C API that works with FILE*.
2015-02-06 08:58:56 +02:00
Serhiy Storchaka
313ee59e49
Issue #23881 : Only use entry-values with gdb 7.4 in tests.
...
Fixes a regression in issue #22765 . Patch by Vinson Lee.
2015-02-06 08:35:54 +02:00
Serhiy Storchaka
17d337bc7a
Issue #23881 : Only use entry-values with gdb 7.4 in tests.
...
Fixes a regression in issue #22765 . Patch by Vinson Lee.
2015-02-06 08:35:20 +02:00
Benjamin Peterson
6c62ac1a01
merge 3.4 ( #22735 )
2015-02-05 22:29:46 -05:00
Benjamin Peterson
104b9e0cca
fix many custom mro() edge cases and improve code quality ( #22735 )
...
Patch by Eldar Abusalimov.
2015-02-05 22:29:14 -05:00
Victor Stinner
f92766c3b2
(Merge 3.4) test_multiprocessing: tolerate a delta of 30 ms because of bad
...
clock resolution on Windows
2015-02-05 14:25:53 +01:00
Victor Stinner
aad7b2e4f5
test_multiprocessing: tolerate a delta of 30 ms because of bad clock resolution
...
on Windows
2015-02-05 14:25:05 +01:00
Serhiy Storchaka
71f5b71cfb
Issue #18982 : Add tests for CLI of the calendar module.
2015-02-05 15:17:49 +02:00
Serhiy Storchaka
aef859c5ee
Issue #18982 : Add tests for CLI of the calendar module.
2015-02-05 15:14:35 +02:00
Ned Deily
7aa4428835
Issue #23345 : merge from 3.4
2015-02-05 17:24:00 +11:00
Ned Deily
05784a706e
Issue #23345 : Prevent test_ssl failures with large OpenSSL patch level
...
values (like 0.9.8zc).
2015-02-05 17:20:13 +11:00
Gregory P. Smith
7c60eb85d8
Make the stdlib test suite helper test.script_helper._assert_python no longer
...
pass -I or -E to the child process by default when the environment is required
for the child process interpreter to function properly.
2015-02-04 17:16:30 -08:00
Gregory P. Smith
c3493aa951
Make the stdlib test suite helper test.script_helper._assert_python no longer
...
pass -I or -E to the child process by default when the environment is required
for the child process interpreter to function properly.
2015-02-04 17:10:19 -08:00
Victor Stinner
c028b95789
Merge 3.4 (asyncio)
2015-02-04 14:51:50 +01:00
Victor Stinner
2fc2313038
asyncio: Only call _check_resolved_address() in debug mode
...
* _check_resolved_address() is implemented with getaddrinfo() which is slow
* If available, use socket.inet_pton() instead of socket.getaddrinfo(), because
it is much faster
Microbenchmark (timeit) on Fedora 21 (Python 3.4, Linux 3.17, glibc 2.20) to
validate the IPV4 address "127.0.0.1" or the IPv6 address "::1":
* getaddrinfo() 10.4 usec per loop
* inet_pton(): 0.285 usec per loop
On glibc older than 2.14, getaddrinfo() always requests the list of all local
IP addresses to the kernel (using a NETLINK socket). getaddrinfo() has other
known issues, it's better to avoid it when it is possible.
2015-02-04 14:51:23 +01:00
Gregory P. Smith
8f2fae1e7d
Skip some tests that require a subinterpreter launched with -E or -I when the
...
interpreter under test is being run in an environment that requires the use of
environment variables such as PYTHONHOME in order to function at all.
Adds a test.script_helper.interpreter_requires_environment() function
to be used with @unittest.skipIf on stdlib test methods requiring this.
2015-02-04 01:04:31 -08:00
Gregory P. Smith
b9a3dd9dfb
Skip some tests that require a subinterpreter launched with -E or -I when the
...
interpreter under test is being run in an environment that requires the use of
environment variables such as PYTHONHOME in order to function at all.
Adds a private test.script_helper._interpreter_requires_environment() function
to be used with @unittest.skipIf on stdlib test methods requiring this.
2015-02-04 00:59:40 -08:00
Stefan Krah
650c1e818d
Issue #14203 : Remove obsolete support for view==NULL in bytesiobuf_getbuffer()
...
and array_buffer_getbuf().
2015-02-03 21:43:23 +01:00
Berker Peksag
ab53ab0a84
Issue #13128 : Print response headers for CONNECT requests when debuglevel > 0.
...
Patch by Demian Brecht.
2015-02-03 12:22:11 +02:00
Berker Peksag
50457403f2
Issue #23358 : Add missing BaseServer entry to socketserver.__all__.
...
Patch by Martin Panter.
2015-02-03 11:55:32 +02:00
Berker Peksag
3265344a85
Issue #23358 : Add missing BaseServer entry to socketserver.__all__.
...
Patch by Martin Panter.
2015-02-03 11:55:09 +02:00
Serhiy Storchaka
87d0b45485
Issue #15381 : Optimized io.BytesIO to make less allocations and copyings.
2015-02-03 11:30:10 +02:00
Serhiy Storchaka
83e802796c
Issue #22818 : Splitting on a pattern that could match an empty string now
...
raises a warning. Patterns that can only match empty strings are now
rejected.
2015-02-03 11:04:19 +02:00
Serhiy Storchaka
32ca3dcb97
Issue #23099 : Closing io.BytesIO with exported buffer is rejected now to
...
prevent corrupting exported buffer.
2015-02-03 09:30:51 +02:00
Serhiy Storchaka
c057c3859c
Issue #23099 : Closing io.BytesIO with exported buffer is rejected now to
...
prevent corrupting exported buffer.
2015-02-03 02:00:18 +02:00
Serhiy Storchaka
7a27c97216
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:50:31 +02:00
Serhiy Storchaka
b5e8e57555
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:35:10 +02:00
Serhiy Storchaka
dee948b359
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:34:09 +02:00
Benjamin Peterson
0b2a6dc42b
merge 3.4
2015-02-02 17:47:31 -05:00
Benjamin Peterson
b0ef78535a
merge 3.3
2015-02-02 17:47:26 -05:00
Benjamin Peterson
1572944499
reduce memory usage of test ( closes #23369 )
2015-02-02 17:47:07 -05:00
Benjamin Peterson
bcf527e0d6
merge 3.4
2015-02-02 14:22:19 -05:00
Benjamin Peterson
f5f9c13551
adjust for py3k module renaming
2015-02-02 14:22:13 -05:00
Benjamin Peterson
5e69419ee4
merge 3.4
2015-02-02 14:06:29 -05:00
Benjamin Peterson
3356a2e2f0
_clear_type_cache is cpython-only
2015-02-02 14:06:11 -05:00
Benjamin Peterson
f86d1fdab7
merge 3.4 ( #21295 )
2015-02-02 10:52:56 -05:00
Benjamin Peterson
7a66fc22ad
revert lineno and col_offset changes from #16795 ( closes #21295 )
2015-02-02 10:51:20 -05:00
Benjamin Peterson
5d0bb852a2
merge 3.4 ( #23364 , #23363 )
2015-02-01 21:36:01 -05:00
Benjamin Peterson
c468b537cd
merge 3.3 ( #23364 , #23363 )
2015-02-01 21:35:34 -05:00
Benjamin Peterson
0eaabf1c05
check for overflows in permutations() and product() ( closes #23363 , closes #23364 )
2015-02-01 21:34:07 -05:00
Benjamin Peterson
38d9772622
merge 3.4 ( #23365 )
2015-02-01 21:11:54 -05:00
Benjamin Peterson
f635dc32b1
merge 3.3 ( #23365 )
2015-02-01 21:11:39 -05:00
Benjamin Peterson
6f082297b2
check for overflow in combinations_with_replacement ( closes #23365 )
2015-02-01 21:10:47 -05:00
Benjamin Peterson
4db56d5002
merge 3.4 ( #23366 )
2015-02-01 21:01:43 -05:00
Benjamin Peterson
819c4e9bc4
merge 3.3 ( #23366 )
2015-02-01 21:00:15 -05:00
Benjamin Peterson
4b40eeb339
detect overflow in combinations ( closes #23366 )
2015-02-01 20:59:00 -05:00
Benjamin Peterson
ad9f99e41f
merge 3.4
2015-02-01 20:18:29 -05:00
Benjamin Peterson
337578b242
fix tests on systems that can't validate python.org
2015-02-01 20:16:59 -05:00
Benjamin Peterson
83e814d852
merge 3.4
2015-02-01 18:02:21 -05:00
Benjamin Peterson
c0b743a97b
merge 3.3
2015-02-01 18:02:15 -05:00
Benjamin Peterson
68389eaa3f
remove extra ws
2015-02-01 18:02:09 -05:00
Benjamin Peterson
71cf91cc09
merge 3.4 ( #23369 )
2015-02-01 18:00:19 -05:00
Benjamin Peterson
3675cd9db1
merge 3.3 ( #23369 )
2015-02-01 17:59:49 -05:00
Benjamin Peterson
e3bfe19358
fix possible overflow in encode_basestring_ascii ( closes #23369 )
2015-02-01 17:53:53 -05:00
Stefan Krah
363af44a4a
Issue #22445 : PyBuffer_IsContiguous() now implements precise contiguity
...
tests, compatible with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation
flag. Previously the function reported false negatives for corner cases.
2015-02-01 14:53:54 +01:00
Serhiy Storchaka
260cd320a1
Merge heads
2015-01-31 12:23:01 +02:00
Victor Stinner
13a1c6022b
Merge 3.4 (generator)
2015-01-31 11:08:40 +01:00
Serhiy Storchaka
08448a1f4d
Issue #23326 : Removed __ne__ implementations. Since fixing default __ne__
...
implementation in issue #21408 they are redundant.
2015-01-31 12:05:05 +02:00
Serhiy Storchaka
57f7db3122
Issue #22765 : Fixed test_gdb failures. Supressed unexpected gdb output.
...
Patch by Bohuslav Kabrda.
2015-01-31 11:50:22 +02:00
Serhiy Storchaka
fdc995336f
Issue #22765 : Fixed test_gdb failures. Supressed unexpected gdb output.
...
Patch by Bohuslav Kabrda.
2015-01-31 11:48:52 +02:00
Victor Stinner
26f7b8acdc
Issue #23353 : Fix the exception handling of generators in PyEval_EvalFrameEx().
...
At entry, save or swap the exception state even if PyEval_EvalFrameEx() is
called with throwflag=0. At exit, the exception state is now always restored or
swapped, not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with
Antoine Pitrou.
2015-01-31 10:29:47 +01:00
Benjamin Peterson
9d4cbcc86b
allow changing __class__ between a heaptype and non-heaptype in some cases ( closes #22986 )
...
Patch by Nathaniel Smith.
2015-01-30 13:33:42 -05:00
Victor Stinner
934fa344c8
Merge 3.4 (asyncio)
2015-01-30 01:21:06 +01:00
Victor Stinner
f2e43cbbd4
Issue #23347 , asyncio: send_signal(), terminate(), kill() don't check if the
...
transport was closed. The check broken a Tulip example and this limitation is
arbitrary. Check if _proc is None should be enough.
Enhance also close(): do nothing when called the second time.
2015-01-30 01:20:44 +01:00
Victor Stinner
698a9bd3ba
Merge 3.4 (asyncio)
2015-01-30 00:11:55 +01:00
Victor Stinner
0698638d79
asyncio: Fix ResourceWarning in test_subprocess.test_proc_exit()
2015-01-30 00:11:42 +01:00
Victor Stinner
a9373ec966
Merge 3.4 (asyncio)
2015-01-30 00:05:36 +01:00
Victor Stinner
47cd10d7a9
asyncio: sync with Tulip
...
Issue #23347 : send_signal(), kill() and terminate() methods of
BaseSubprocessTransport now check if the transport was closed and if the
process exited.
Issue #23347 : Refactor creation of subprocess transports. Changes on
BaseSubprocessTransport:
* Add a wait() method to wait until the child process exit
* The constructor now accepts an optional waiter parameter. The _post_init()
coroutine must not be called explicitly anymore. It makes subprocess
transports closer to other transports, and it gives more freedom if we want
later to change completly how subprocess transports are created.
* close() now kills the process instead of kindly terminate it: the child
process may ignore SIGTERM and continue to run. Call explicitly terminate()
and wait() if you want to kindly terminate the child process.
* close() now logs a warning in debug mode if the process is still running and
needs to be killed
* _make_subprocess_transport() is now fully asynchronous again: if the creation
of the transport failed, wait asynchronously for the process eixt. Before the
wait was synchronous. This change requires close() to *kill*, and not
terminate, the child process.
* Remove the _kill_wait() method, replaced with a more agressive close()
method. It fixes _make_subprocess_transport() on error.
BaseSubprocessTransport.close() calls the close() method of pipe transports,
whereas _kill_wait() closed directly pipes of the subprocess.Popen object
without unregistering file descriptors from the selector (which caused severe
bugs).
These changes simplifies the code of subprocess.py.
2015-01-30 00:05:19 +01:00
Victor Stinner
2647375cc9
Merge 3.4 (asyncio)
2015-01-30 00:04:27 +01:00
Victor Stinner
978a9afc6a
Issue #23243 , asyncio: Emit a ResourceWarning when an event loop or a transport
...
is not explicitly closed. Close also explicitly transports in test_sslproto.
2015-01-29 17:50:58 +01:00
Stefan Krah
29b40c1569
Issue #22668 : Merge from 3.4.
2015-01-29 17:40:59 +01:00
Stefan Krah
3c0cf05901
Issue #22668 : Remove endianness assumption in test.
2015-01-29 17:33:31 +01:00
Stefan Krah
fc341bd4c5
Whitespace.
2015-01-29 14:33:37 +01:00
Stefan Krah
f5324d7074
Closes #22668 : Merge from 3.4.
2015-01-29 14:29:51 +01:00
Stefan Krah
fa5d6a5ff3
Issue #22668 : Ensure that format strings survive slicing after casting.
2015-01-29 14:27:23 +01:00
Victor Stinner
6d14405fdb
Merge 3.4 (asyncio)
2015-01-29 14:15:42 +01:00
Victor Stinner
2934262fd3
asyncio: sync with Tulip
...
* Cleanup gather(): use cancelled() method instead of using private Future
attribute
* Fix _UnixReadPipeTransport and _UnixWritePipeTransport. Only start reading
when connection_made() has been called.
* Issue #23333 : Fix BaseSelectorEventLoop._accept_connection(). Close the
transport on error. In debug mode, log errors using call_exception_handler()
2015-01-29 14:15:19 +01:00