Victor Stinner
fcfed19913
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:54:58 +01:00
Victor Stinner
789b805700
test_ssl: add more debug to investigate test_openssl_version() failure on
...
OpenBSD with LibreSSL.
2015-01-06 11:51:06 +01:00
Victor Stinner
4ae5467134
Merge 3.4 (asyncio)
2015-01-06 01:22:54 +01:00
Victor Stinner
212994e4e2
Issue #23140 , asyncio: Simplify the unit test
2015-01-06 01:22:45 +01:00
Victor Stinner
43a8534364
Merge 3.4 (asyncio)
2015-01-06 01:14:09 +01:00
Victor Stinner
c447ba04e7
Issue #23140 , asyncio: Fix cancellation of Process.wait(). Check the state of
...
the waiter future before setting its result.
2015-01-06 01:13:49 +01:00
Ned Deily
04c365d7fb
Issue #22165 : merge from 3.4
2015-01-05 01:05:36 -08:00
Ned Deily
1418320850
Issue #22165 : Skip test_undecodable_filename on OS X prior to 10.5.
...
10.4 systems do not allow creation of files with such filenames.
2015-01-05 01:02:30 -08:00
Gregory P. Smith
9eb1faf39b
fix issue23157 - time_hashlib hadn't been ported to Python 3.
2015-01-04 00:36:59 -08:00
Gregory P. Smith
5719ef17ba
fix issue23157 - time_hashlib hadn't been ported to Python 3.
2015-01-04 00:36:04 -08:00
Serhiy Storchaka
697a526fa1
Issue #23132 : Improve performance and introspection support of comparison
...
methods created by functool.total_ordering.
2015-01-01 15:23:12 +02:00
Antoine Pitrou
8477ed6048
Issue #19776 : Add a expanduser() method on Path objects.
...
Patch by Serhiy.
2014-12-30 20:54:45 +01:00
Victor Stinner
0f9f7497d0
Merge 3.4 (asyncio)
2014-12-26 21:29:45 +01:00
Victor Stinner
956de691f8
Issue #22926 : In debug mode, call_soon(), call_at() and call_later() methods of
...
asyncio.BaseEventLoop now use the identifier of the current thread to ensure
that they are called from the thread running the event loop.
Before, the get_event_loop() method was used to check the thread, and no
exception was raised when the thread had no event loop. Now the methods always
raise an exception in debug mode when called from the wrong thread. It should
help to notice misusage of the API.
2014-12-26 21:07:52 +01:00
Victor Stinner
d7ff5a5375
asyncio: sync with Tulip
...
* Fix pyflakes warnings: remove unused imports and variables
* asyncio.test_support now uses test.support and test.script_helper if available
2014-12-26 21:16:42 +01:00
Benjamin Peterson
fe975a234f
merge 3.4 ( #23112 )
2014-12-26 10:56:51 -06:00
Benjamin Peterson
94cb7a2429
fix behavior of trailing slash redirection when a query string is involved ( closes #23112 )
2014-12-26 10:53:43 -06:00
R David Murray
f2ad173eaf
#20069 : Add tests for os.chown.
...
Patch by Vajrasky Kok.
2014-12-25 18:36:56 -05:00
Benjamin Peterson
98beb7599e
merge 3.4 ( #23093 )
2014-12-21 21:00:51 -06:00
Benjamin Peterson
10e76b67c9
allow more operations to work on detached streams ( closes #23093 )
...
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Victor Stinner
fe02e39029
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Victor Stinner
4d6a3d6c01
Issue #22585 : On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
...
instead of reading /dev/urandom, to get pseudo-random bytes.
2014-12-21 01:16:38 +01:00
Serhiy Storchaka
3c6fe4da88
Issue #19104 : pprint now produces evaluable output for wrapped strings.
2014-12-20 20:58:28 +02:00
Serhiy Storchaka
fe3dc376fa
Issue #19104 : pprint now produces evaluable output for wrapped strings.
2014-12-20 20:57:15 +02:00
Serhiy Storchaka
f65d1d3b02
Issue #23071 : "namereplace_errors" was added only in 3.5.
2014-12-20 18:53:01 +02:00
Serhiy Storchaka
4d33ff6183
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:46:05 +02:00
Serhiy Storchaka
de3ee5b94f
Issue #23071 : Added missing names to codecs.__all__. Patch by Martin Panter.
2014-12-20 17:42:38 +02:00
Victor Stinner
2f65f6678b
Merge 3.4 (asyncio)
2014-12-19 17:11:10 +01:00
Victor Stinner
4d825b45a0
asyncio: IocpProactor.wait_for_handle() test now also checks the result of the
...
future
2014-12-19 17:10:44 +01:00
Victor Stinner
f00346ce37
Merge 3.4 (asyncio)
2014-12-18 12:30:33 +01:00
Victor Stinner
dc7765d12c
asyncio: sync with Tulip
2014-12-18 12:29:53 +01:00
Victor Stinner
42830578c6
Merge 3.4 (asyncio)
2014-12-18 01:20:29 +01:00
Victor Stinner
3a1c738e6c
Issue #23074 : asyncio.get_event_loop() now raises an exception if the thread
...
has no event loop even if assertions are disabled.
2014-12-18 01:20:10 +01:00
Victor Stinner
fc6fdb112d
Issue #23009 : Skip test_selectors.test_empty_select() on Windows
2014-12-17 01:07:56 +01:00
Serhiy Storchaka
707b5ccde5
Issue #22783 : Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX
...
opcode if possible.
2014-12-16 19:43:46 +02:00
Serhiy Storchaka
01bdd9a980
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:40:58 +02:00
Serhiy Storchaka
5bbd231f27
Issue #15513 : Added a __sizeof__ implementation for pickle classes.
2014-12-16 19:39:08 +02:00
Serhiy Storchaka
f5553bbb0e
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:02:49 +02:00
Serhiy Storchaka
05dadcfb28
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:00:56 +02:00
Steve Dower
03a144bb6a
#22980 Adds platform and version tags to .pyd files
2014-12-15 20:45:23 -08:00
Benjamin Peterson
8d33598e5d
merge 3.4 ( #23053 )
2014-12-15 10:05:13 -05:00
Benjamin Peterson
4c11c92578
remove extra ssl imports ( closes #23053 )
...
Patch from Jan Matejek.
2014-12-15 10:04:13 -05:00
Serhiy Storchaka
65ee4674e2
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:06:02 +02:00
Serhiy Storchaka
bad1257c96
Issue #22777 : Test pickling with all protocols.
2014-12-15 14:03:42 +02:00
Serhiy Storchaka
0e32ea1089
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:06:22 +02:00
Serhiy Storchaka
79b81738ef
Issue #23015 : Improved testing of the uuid module.
2014-12-15 12:03:44 +02:00
Benjamin Peterson
2a7d05a9f2
merge 3.4
2014-12-13 16:13:31 -05:00
Benjamin Peterson
9566de18e6
make sure server threads get cleaned up
2014-12-13 16:13:24 -05:00
Benjamin Peterson
7ced53cc63
merge 3.4 ( #23048 )
2014-12-13 16:08:15 -05:00
Benjamin Peterson
3cda0ed062
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
Victor Stinner
437ffbdcd8
test_selectors: Tolerate 2.0 seconds instead of 1.6 sec for very slow buildbots
2014-12-12 12:57:35 +01:00
Victor Stinner
3f7e064b2b
Issue #22935 : Fix test_ssl when the SSLv3 protocol is not supported
2014-12-12 12:27:08 +01:00
Serhiy Storchaka
4ac7ed97a8
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2014-12-12 09:29:15 +02:00
Victor Stinner
1e40f10886
asyncio, tulip issue 209: Fix subprocess for close_fds=False on Python 3.3
...
Mark the write end of the stdin pipe as non-inheritable.
2014-12-11 23:30:17 +01:00
Victor Stinner
df75d5b402
asyncio, tulip issue 202: Add unit test of pause/resume writing for proactor
...
socket transport
2014-12-11 22:23:19 +01:00
Serhiy Storchaka
60599525c5
Issue #23016 : A warning no longer produces AttributeError when the program
...
is run with pythonw.exe.
2014-12-10 22:59:55 +02:00
Berker Peksag
884afd92f5
Issue #21775 : shutil.copytree(): fix crash when copying to VFAT
...
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Patch by Greg Ward.
2014-12-10 02:50:32 +02:00
Yury Selivanov
7de29687f2
inspect: Fix getsource() to load updated source of reloaded module
...
Issue #1218234 . Initial patch by Berker Peksag.
2014-12-08 18:00:25 -05:00
Yury Selivanov
d60ef4aa9d
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
...
Closes issue #23009 .
2014-12-08 12:21:58 -05:00
Benjamin Peterson
a090f01bb6
HTTPSConnection: prefer the context's check_hostname attribute over the constructor parameter ( #22959 )
2014-12-07 13:18:25 -05:00
Benjamin Peterson
e32467cf6a
allow ssl module to compile if openssl doesn't support SSL 3 ( closes #22935 )
...
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Benjamin Peterson
eca72d47f5
merge 3.3 ( #16043 )
2014-12-05 20:34:56 -05:00
Benjamin Peterson
81b7374fbe
merge 3.2 ( #16043 )
2014-12-05 20:30:54 -05:00
Benjamin Peterson
4e9cefaf86
add a default limit for the amount of data xmlrpclib.gzip_decode will return ( closes #16043 )
2014-12-05 20:15:15 -05:00
Victor Stinner
f3e2e09213
Closes #22429 , asyncio: Fix EventLoop.run_until_complete(), don't stop the
...
event loop if a BaseException is raised, because the event loop is already
stopped.
2014-12-05 01:44:10 +01:00
Victor Stinner
e80bf0d4a9
Closes #22922 : More EventLoop methods fail if the loop is closed. Initial patch
...
written by Torsten Landschoff.
create_task(), call_at(), call_soon(), call_soon_threadsafe() and
run_in_executor() now raise an error if the event loop is closed.
2014-12-04 23:07:47 +01:00
Victor Stinner
dd8224e6a4
Issue #22685 : Fix test_pause_reading() of asyncio test_subprocess
...
* mock also resume_reading()
* ensure that resume_reading() is called
2014-12-04 23:06:13 +01:00
Serhiy Storchaka
1ad088f3ea
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:57 +02:00
Barry Warsaw
eb2763dd43
Fix the test to use an os.sep agnostic test. Hopefully this will fix the
...
Windows buildbots. Found by Jeremy Kloth.
2014-12-02 11:30:43 -05:00
Serhiy Storchaka
83cf99d733
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
...
is specified with non-string argument. Based on patch by Renaud Blanch.
2014-12-02 09:24:06 +02:00
Barry Warsaw
9d98c9bf42
Make this change a little more robust for up-merging.
2014-12-01 18:15:26 -05:00
Barry Warsaw
9e4db75426
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:23:55 -05:00
Barry Warsaw
2a413853f1
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:10:10 -05:00
Serhiy Storchaka
56a6d855e2
Removed duplicated words in in comments and docs.
2014-12-01 18:28:43 +02:00
Serhiy Storchaka
b491e0521f
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:07:45 +02:00
Serhiy Storchaka
9cba989502
Issue #22838 : All test_re tests now work with unittest test discovery.
2014-12-01 11:06:45 +02:00
Benjamin Peterson
66323415c7
backout 9fcf4008b626 ( #9179 ) for further consideration
2014-11-30 11:49:00 -05:00
Antoine Pitrou
2b3b95be62
Close issue #22895 : fix test failure introduced by the fix for issue #22462 .
2014-11-29 15:56:07 +01:00
Ned Deily
153879075f
Issue #16113 : Also remove test_case_sha3_224_huge
2014-11-28 15:21:12 -08:00
Victor Stinner
cbbd04d176
Issue #22685 : Debug test_pause_reading() on FreeBSD
2014-11-28 18:02:03 +01:00
Serhiy Storchaka
9a4fc19589
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:48:46 +02:00
Serhiy Storchaka
fc8e9b0e72
Issue #22915 : SAX parser now supports files opened with file descriptor or
...
bytes path.
2014-11-27 22:13:16 +02:00
Serhiy Storchaka
a86700ae87
Issue #22609 : Revert changes in UserDict. They conflicted with existing tests.
2014-11-27 17:45:44 +02:00
Serhiy Storchaka
ae5cb214d2
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 16:25:51 +02:00
Benjamin Peterson
5b5350787f
use skipUnless
2014-11-26 14:35:56 -06:00
Benjamin Peterson
6150804397
handle errors without a reason attribute
2014-11-25 15:43:58 -06:00
Benjamin Peterson
2615e9e293
don't fail tests when www.python.org can't be validated by the system
2014-11-25 15:16:55 -06:00
Victor Stinner
5ef586f25a
Closes #22685 , asyncio: Set the transport of stdout and stderr StreamReader
...
objects in the SubprocessStreamProtocol. It allows to pause the transport to
not buffer too much stdout or stderr data.
2014-11-25 17:20:33 +01:00
Benjamin Peterson
43052a14c1
add context parameter to HTTPHandler ( closes #22788 )
2014-11-23 20:36:44 -06:00
Benjamin Peterson
7243b574e5
don't require OpenSSL SNI to pass hostname to ssl functions ( #22921 )
...
Patch by Donald Stufft.
2014-11-23 17:04:34 -06:00
Brett Cannon
92716777b8
Stop using a deprecated unittest.TestCase method.
2014-12-12 12:00:02 -05:00
Victor Stinner
ee2b237464
Merge 3.4 (test_selectors)
2014-12-12 12:58:45 +01:00
Victor Stinner
648b862017
Issue #22935 : Fix test_ssl when the SSLv3 protocol is not supported
2014-12-12 12:23:59 +01:00
Serhiy Storchaka
d4a001b23c
Issue #22095 : Fixed HTTPConnection.set_tunnel with default port. The port
...
value in the host header was set to "None". Patch by Demian Brecht.
2014-12-12 09:30:18 +02:00
Victor Stinner
d625a1819d
Merge 3.4 (asyncio)
2014-12-11 23:30:31 +01:00
Victor Stinner
49784f4d14
Merge 3.4 (asyncio)
2014-12-11 22:23:28 +01:00
Serhiy Storchaka
927131e050
Issue #23016 : A warning no longer produces an AttributeError when the program
...
is run with pythonw.exe.
2014-12-10 23:04:47 +02:00
Berker Peksag
5de4a3cfc5
Issue #21775 : shutil.copytree(): fix crash when copying to VFAT
...
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Patch by Greg Ward.
2014-12-10 02:51:36 +02:00
Berker Peksag
0a2e874eea
Issue #17554 : Print "fetching <url> ..." messages only in verbose mode.
...
Patch by Ezio Melotti.
2014-12-10 02:34:11 +02:00
Yury Selivanov
ef1e750225
inspect: Fix getsource() to load updated source of reloaded module
...
Issue #1218234 . Initial patch by Berker Peksag.
2014-12-08 16:05:34 -05:00
Yury Selivanov
b532df62b9
Issue #21740 : Support wrapped callables in pydoc. Patch by Claudiu Popa.
2014-12-08 15:00:05 -05:00
Yury Selivanov
7f98d3ecb8
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
...
Closes issue #23009 .
2014-12-08 12:22:33 -05:00
Benjamin Peterson
b46247bee5
merge 3.4 ( #22959 )
2014-12-07 13:47:34 -05:00
Antoine Pitrou
5db1bb81ff
Issue #22696 : Add function :func:`sys.is_finalizing` to know about interpreter shutdown.
2014-12-07 01:28:27 +01:00
Benjamin Peterson
22293df016
merge 3.4 ( #22935 )
2014-12-05 22:11:33 -05:00
Benjamin Peterson
7eda940e1f
merge 3.4 ( #16043 )
2014-12-05 20:36:07 -05:00
Victor Stinner
9d279b87d8
(Merge 3.4) Issue #22599 : Enhance tokenize.open() to be able to call it during
...
Python finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
2014-12-05 10:18:30 +01:00
Victor Stinner
96a4b5adfc
Merge 3.4 (asyncio)
2014-12-05 01:44:31 +01:00
Victor Stinner
d5ea5d528a
Merge 3.4 (asyncio)
2014-12-04 23:08:37 +01:00
Serhiy Storchaka
f4adbae927
Issue #14099 : ZipFile.open() no longer reopen the underlying file. Objects
...
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:14:36 +02:00
Serhiy Storchaka
4954f9fcab
Issue #17401 : Output the closefd attribute as boolean.
2014-12-02 23:39:56 +02:00
Barry Warsaw
de010a9685
Merge 3.4.
2014-12-02 11:31:10 -05:00
Serhiy Storchaka
0b2cacb42a
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
...
is specified with non-string argument. Based on patch by Renaud Blanch.
2014-12-02 09:26:14 +02:00
Antoine Pitrou
6cd5eda0dd
Fix uninitialized variable after #22676 .
2014-12-02 00:20:03 +01:00
Barry Warsaw
d32d4ae4ca
- Issue #22966 : Fix __pycache__ pyc file name clobber when pyc_compile is
...
asked to compile a source file containing multiple dots in the source file
name.
2014-12-01 17:52:43 -05:00
Serhiy Storchaka
83000a490a
Removed duplicated words in in comments and docs.
2014-12-01 18:30:14 +02:00
Serhiy Storchaka
2205da43a6
Issue #21032 . Fixed socket leak if HTTPConnection.getresponse() fails.
...
Original patch by Martin Panter.
2014-12-01 13:10:12 +02:00
Serhiy Storchaka
22a309a434
Issue #21032 : Deprecated the use of re.LOCALE flag with str patterns or
...
re.ASCII. It was newer worked.
2014-12-01 11:50:07 +02:00
Serhiy Storchaka
fb028336f9
Issue #22838 : All test_re tests now work with unittest test discovery.
2014-12-01 11:08:27 +02:00
Serhiy Storchaka
ac4aa7b6aa
Issue #22902 : The "ip" command is now used on Linux to determine MAC address
...
in uuid.getnode(). Pach by Bruno Cauet.
2014-11-30 20:39:04 +02:00
Benjamin Peterson
16e802f4ae
merge 3.4 ( #9179 )
2014-11-30 11:51:16 -05:00
Antoine Pitrou
3a9c68e608
Close issue #22895 : fix test failure introduced by the fix for issue #22462 .
2014-11-29 15:56:38 +01:00
Ned Deily
df46e2a43b
Issue #16113 : Also remove test_case_sha3_224_huge
2014-11-28 15:22:15 -08:00
Victor Stinner
73866efc34
Issue #22685 , asyncio: resume_reading() must also be called in test_pause_reading()
2014-11-28 22:42:06 +01:00
Victor Stinner
ddf3bc9078
Issue #22685 , asyncio: mock also resume_reading in test_pause_reading()
2014-11-28 22:37:16 +01:00
Berker Peksag
bb44fe0a0b
Issue #22389 : Add contextlib.redirect_stderr().
2014-11-28 23:28:06 +02:00
Victor Stinner
ae553eb794
Merge 3.4 (asyncio)
2014-11-28 18:02:16 +01:00
Victor Stinner
beeb512fe1
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation.
Patch written by Bernard Spil.
2014-11-28 13:28:25 +01:00
Serhiy Storchaka
0a99b2ab61
Issue #21280 : Fixed a bug in shutil.make_archive() when create an archive of
...
current directory in current directory.
2014-11-28 00:49:50 +02:00
Serhiy Storchaka
5916d53032
Issue #22915 : SAX parser now supports files opened with file descriptor or
...
bytes path.
2014-11-27 22:14:30 +02:00
Serhiy Storchaka
f51f713f30
Issue #22609 : Revert changes in UserDict. They conflicted with existing tests.
2014-11-27 17:46:15 +02:00
Serhiy Storchaka
8943ecfab2
Issue #22609 : Constructors and update methods of mapping classes in the
...
collections module now accept the self keyword argument.
2014-11-27 16:35:26 +02:00
Ned Deily
8007cbc4d5
Issue 22940: fixes to editline support
2014-11-26 13:02:33 -08:00
Benjamin Peterson
12abc86903
merge 3.4
2014-11-26 14:36:08 -06:00
Benjamin Peterson
d1e22ba7db
only support append_history if readline has it
2014-11-26 14:35:12 -06:00
Benjamin Peterson
33f8f15bdd
add readline.append_history_file ( closes #22940 )
...
patch by "bru"
2014-11-26 13:58:16 -06:00
Benjamin Peterson
8dcaa4b1c6
merge 3.4
2014-11-25 18:05:40 -06:00
Victor Stinner
6a11e5e1ae
(Merge 3.4) Closes #22685 , asyncio: Set the transport of stdout and stderr
...
StreamReader objects in the SubprocessStreamProtocol. It allows to pause the
transport to not buffer too much stdout or stderr data.
2014-11-25 17:21:43 +01:00
Serhiy Storchaka
166ebc4e5d
Issue #19676 : Added the "namereplace" error handler.
2014-11-25 13:57:17 +02:00
Benjamin Peterson
6c22e65773
merge 3.4 ( #22788 )
2014-11-23 20:38:13 -06:00
Benjamin Peterson
f9284ae8ed
merge 3.4 ( #22921 )
2014-11-23 17:06:39 -06:00
Raymond Hettinger
bb6c0aaebf
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
2014-11-22 22:14:41 -08:00
Zachary Ware
513112b229
Issue #22834 : cwd can't not exist on Windows, skip the test
2014-11-22 17:03:46 -06:00
Brett Cannon
b6e2556d8f
Issue #22834 : Have import suppress FileNotFoundError when the current
...
working directory no longer exists.
Thanks to Martin Panter for the bug report.
2014-11-21 12:19:28 -05:00
Antoine Pitrou
b1e36073cd
Issue #22796 : HTTP cookie parsing is now stricter, in order to protect against potential injection attacks.
2014-11-21 01:20:57 +01:00
Victor Stinner
bca6ae67d6
Merge 3.4 (asyncio)
2014-11-20 15:04:31 +01:00
Victor Stinner
2d99d93d11
asyncio: Coroutine objects are now rejected with a TypeError by the following
...
functions:
* add_signal_handler()
* call_at()
* call_later()
* call_soon()
* call_soon_threadsafe()
* run_in_executor()
Fix also the error message of add_signal_handler() (fix the name of the
function).
2014-11-20 15:03:52 +01:00
Victor Stinner
8beadd3d96
Merge with 3.4 (asyncio)
2014-11-20 14:19:49 +01:00
Victor Stinner
c1ad35aae8
asyncio, test_events: Ignore the "SSL handshake failed" log in debug mode
2014-11-20 14:19:23 +01:00
Victor Stinner
662fd5f68e
asyncio: Fix formatting of the "Future exception was never retrieved" in
...
release mode
2014-11-20 14:16:31 +01:00
Serhiy Storchaka
66fb349d6c
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
...
Patch by David Watson.
2014-11-19 13:21:40 +02:00
Serhiy Storchaka
abde2c1d25
Issue #20736 : testSendmsgDontWait in test_socket no longer skipped on Linux.
...
Patch by David Watson.
2014-11-19 13:21:13 +02:00
Raymond Hettinger
a34cd0c781
Issue #22824 : Simplify reprlib output format for empty arrays
2014-11-15 10:58:58 -08:00
Serhiy Storchaka
42826566f5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:22:27 +02:00
Serhiy Storchaka
030e92d1a5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
...
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:37 +02:00
Guido van Rossum
59f0682190
- Issue #22841 : Reject coroutines in asyncio add_signal_handler().
...
Patch by Ludovic.Gasc.
2014-11-14 11:48:37 -08:00
Guido van Rossum
e36fcde383
- Issue #22841 : Reject coroutines in asyncio add_signal_handler().
...
Patch by Ludovic.Gasc.
2014-11-14 11:45:47 -08:00
Benjamin Peterson
6fd113c26c
add space
2014-11-12 10:23:44 -05:00
Benjamin Peterson
994c7f76a3
merge 3.4 ( #22849 )
2014-11-12 10:23:35 -05:00
Benjamin Peterson
6c14f23100
fix possible double free in TextIOWrapper.__init__ ( closes #22849 )
2014-11-12 10:19:46 -05:00
Nick Coghlan
c216c48699
Close #19494 : add urrlib.request.HTTPBasicPriorAuthHandler
...
This auth handler adds the Authorization header to the first
HTTP request rather than waiting for a HTTP 401 Unauthorized
response from the server as the default HTTPBasicAuthHandler
does.
This allows working with websites like https://api.github.com which do
not follow the strict interpretation of RFC, but more the dicta in the
end of section 2 of RFC 2617:
> A client MAY preemptively send the corresponding Authorization
> header with requests for resources in that space without receipt
> of another challenge from the server. Similarly, when a client
> sends a request to a proxy, it may reuse a userid and password in
> the Proxy-Authorization header field without receiving another
> challenge from the proxy server. See section 4 for security
> considerations associated with Basic authentication.
Patch by Matej Cepl.
2014-11-12 23:33:50 +10:00
Serhiy Storchaka
ab14088141
Minor code clean up and improvements in the re module.
2014-11-11 21:13:28 +02:00
Serhiy Storchaka
b99c132bd9
Fixed AttributeError when the regular expression starts from illegal escape.
2014-11-10 14:38:16 +02:00
Serhiy Storchaka
ad446d57a9
Issue #22578 : Added attributes to the re.error class.
2014-11-10 13:49:00 +02:00
Serhiy Storchaka
5619ab926b
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:43:14 +02:00
Serhiy Storchaka
0c938f6d24
Issue #12728 : Different Unicode characters having the same uppercase but
...
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:16 +02:00
Serhiy Storchaka
5f33677219
Merge heads
2014-11-10 10:21:03 +02:00
Berker Peksag
39e4c4d873
Issue #21650 : Add an `--sort-keys` option to json.tool CLI.
2014-11-10 09:56:54 +02:00
Raymond Hettinger
ffd842e1d6
Issue #22824 : Updated reprlib output format for sets to use set literals.
2014-11-09 22:30:36 -08:00
Serhiy Storchaka
c7f7d3897e
Issue #22434 : Constants in sre_constants are now named constants (enum-like).
2014-11-09 20:48:36 +02:00
Serhiy Storchaka
479c1176bf
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:33:19 +02:00
Serhiy Storchaka
3402ef6c8d
Silence the failure of test_pyclbr after adding a property in sre_parse
...
(issue #814253 ).
2014-11-07 22:32:37 +02:00
Serhiy Storchaka
6276b32799
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:45:17 +02:00
Serhiy Storchaka
84df7fe6a2
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:57 +02:00
Serhiy Storchaka
85e7066278
Issue #22406 : Fixed the uu_codec codec incorrectly ported to 3.x.
...
Based on patch by Martin Panter.
2014-11-07 14:06:19 +02:00
Serhiy Storchaka
519114df42
Issue #22406 : Fixed the uu_codec codec incorrectly ported to 3.x.
...
Based on patch by Martin Panter.
2014-11-07 14:04:37 +02:00
Serhiy Storchaka
57b967791a
Issue #17293 : uuid.getnode() now determines MAC address on AIX using netstat.
...
Based on patch by Aivars Kalvāns.
2014-11-07 12:23:30 +02:00
Serhiy Storchaka
e66bb96929
Issue #17293 : uuid.getnode() now determines MAC address on AIX using netstat.
...
Based on patch by Aivars Kalvāns.
2014-11-07 12:19:40 +02:00
Georg Brandl
9f2e0d6a86
merge with 3.4
2014-11-06 15:33:35 +01:00
Georg Brandl
72a7f7c476
Try to transfer the Unicode test data files gzipped.
2014-11-06 15:33:30 +01:00
Georg Brandl
2f5f2908d2
merge with 3.4
2014-11-06 14:38:23 +01:00
Georg Brandl
5a15508f97
#22650 : test suite: load Unicode test data files from www.pythontest.net
2014-11-06 14:37:49 +01:00
Georg Brandl
dca213dd77
merge with 3.4
2014-11-05 22:17:29 +01:00
Antoine Pitrou
f25358265a
Closes #22784 : fix test_asyncio when the ssl module isn't available
2014-11-05 20:48:40 +01:00
Antoine Pitrou
50219fcd23
Closes #22784 : fix test_asyncio when the ssl module isn't available
2014-11-05 20:48:16 +01:00
Georg Brandl
fbaf931096
test_httplib: use self-signed.pythontest.net for verification test with non-root-CA cert
2014-11-05 20:37:40 +01:00
Benjamin Peterson
81d9feee8d
merge 3.4
2014-11-05 13:10:16 -05:00
Benjamin Peterson
b811a97859
use pythontest.net for fragment redirection test
2014-11-05 13:10:08 -05:00
Benjamin Peterson
141579c886
merge 3.4
2014-11-05 11:31:02 -05:00
Benjamin Peterson
1d83002748
remove requires_ssl decorator
2014-11-05 11:30:21 -05:00
Benjamin Peterson
67a9877866
merge 3.3
2014-11-05 11:30:00 -05:00
Benjamin Peterson
e71abcc7bb
merge 3.2
2014-11-05 11:29:39 -05:00
Benjamin Peterson
258f3f0dc2
use pythontest.net for url fragment test
2014-11-05 11:27:14 -05:00
Victor Stinner
5239caf835
(Merge 3.4) asyncio: Move loop attribute to _FlowControlMixin
...
Move the _loop attribute from the constructor of _SelectorTransport,
_ProactorBasePipeTransport and _UnixWritePipeTransport classes to the
constructor of the _FlowControlMixin class.
Add also an assertion to explicit that the parent class must ensure that the
loop is defined (not None)
2014-11-05 15:27:54 +01:00
Victor Stinner
004adb91f6
asyncio: Move loop attribute to _FlowControlMixin
...
Move the _loop attribute from the constructor of _SelectorTransport,
_ProactorBasePipeTransport and _UnixWritePipeTransport classes to the
constructor of the _FlowControlMixin class.
Add also an assertion to explicit that the parent class must ensure that the
loop is defined (not None)
2014-11-05 15:27:41 +01:00
Antoine Pitrou
d39e199a0d
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:53:01 +01:00
Antoine Pitrou
7e8b8678f1
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:52:10 +01:00
Benjamin Peterson
98e1b9158c
merge 3.4
2014-11-03 21:06:07 -05:00
Benjamin Peterson
1ea070e561
test that keyfile can be None
2014-11-03 21:05:01 -05:00
Benjamin Peterson
678e11aa22
merge 3.4
2014-11-03 15:12:52 -05:00
Benjamin Peterson
8d2d5b9c59
merge 3.3
2014-11-03 15:12:06 -05:00
Benjamin Peterson
97751fa5c9
merge 3.2
2014-11-03 15:11:53 -05:00
Benjamin Peterson
863c962e68
move idna test domain to pythontest.net
2014-11-03 15:10:47 -05:00
Benjamin Peterson
1cca273669
merge 3.4 ( #22417 )
2014-11-03 14:36:48 -05:00
Benjamin Peterson
4ffb075271
PEP 476: enable HTTPS certificate verification by default ( #22417 )
...
Patch by Alex Gaynor with some modifications by me.
2014-11-03 14:29:33 -05:00
Serhiy Storchaka
2cb0e73a89
Issue #22775 : Fixed unpickling of http.cookies.SimpleCookie with protocol 2
...
and above. Patch by Tim Graham.
2014-11-02 22:19:56 +02:00
Serhiy Storchaka
8cf7c1cff0
Issue #22775 : Fixed unpickling of http.cookies.SimpleCookie with protocol 2
...
and above. Patch by Tim Graham.
2014-11-02 22:18:25 +02:00
Antoine Pitrou
a14414dfe9
Merge heads
2014-11-02 18:42:41 +01:00
Antoine Pitrou
8a03896cac
Issue #22335 : Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform.
2014-11-02 18:41:56 +01:00
Antoine Pitrou
cc23154d02
Issue #22335 : Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform.
2014-11-02 18:40:09 +01:00
Ezio Melotti
6e2db04345
#22751 : merge with 3.4.
2014-11-02 19:14:54 +02:00
Ezio Melotti
8b23f5cc7a
#22751 : fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo.
2014-11-02 19:08:35 +02:00
Antoine Pitrou
07df6555c4
Fix test_urllib without the ssl module
2014-11-02 17:23:14 +01:00
Ned Deily
048345d417
Issue #22770 : merge from 3.4
2014-11-01 19:33:25 -07:00
Ned Deily
91f01e175a
Issue #22770 : Prevent some Tk segfaults on OS X when running gui tests.
...
When running tests in subprocesses with the regrtest -j option, a bug
in Cocoa Tk can result in a Tcl segfault. Avoid the problem by forcing
Tk to fully initialize as an OS X gui process before destroying the
Tcl instance and creating another. (Original patch by Serhiy Storchaka)
2014-11-01 19:29:22 -07:00
Steve Dower
f6c69e6cc9
#22734 marshal needs a lower stack depth for debug builds on Windows
2014-11-01 15:15:16 -07:00
Steve Dower
86e9deb5aa
#22731 test_capi test fails because of mismatched newlines
2014-11-01 15:11:05 -07:00
Berker Peksag
8912270629
Issue #22665 : Add missing get_terminal_size and SameFileError to shutil.__all__.
2014-11-01 11:05:36 +02:00
Berker Peksag
8083cd6c3b
Issue #22665 : Add missing get_terminal_size and SameFileError to shutil.__all__.
2014-11-01 11:04:06 +02:00
Berker Peksag
8f791d358b
Issue #6623 : Remove deprecated Netrc class in the ftplib module.
...
Patch by Matt Chaput.
2014-11-01 10:45:57 +02:00
Serhiy Storchaka
b1847e7541
Issue #17381 : Fixed handling of case-insensitive ranges in regular expressions.
2014-10-31 12:37:50 +02:00
Serhiy Storchaka
4b8f8949b4
Issue #17381 : Fixed handling of case-insensitive ranges in regular expressions.
...
Added new opcode RANGE_IGNORE.
2014-10-31 12:36:56 +02:00
Serhiy Storchaka
d9b8dc272a
Merge heads
2014-10-31 00:57:57 +02:00
Serhiy Storchaka
7cc0a1f7cb
Issue #22410 : Module level functions in the re module now cache compiled
...
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:56:45 +02:00
Serhiy Storchaka
4659cc0756
Issue #22410 : Module level functions in the re module now cache compiled
...
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:53:49 +02:00
Antoine Pitrou
c689101a5e
Issue #22759 : Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False when the underlying stat call raises NotADirectoryError.
2014-10-30 23:15:25 +01:00
Antoine Pitrou
2b2852b1b4
Issue #22759 : Query methods on pathlib.Path() (exists(), is_dir(), etc.) now return False when the underlying stat call raises NotADirectoryError.
2014-10-30 23:14:03 +01:00
Serhiy Storchaka
51a43703af
Issue #22217 : Implemented reprs of classes in the zipfile module.
2014-10-29 22:42:06 +02:00
Zachary Ware
0f26a3a8c9
Closes #22173 : Merge with 3.4
2014-10-29 12:28:13 -05:00
Zachary Ware
2acbae8016
Issue #22173 : Update lib2to3 tests to use unittest test discovery.
2014-10-29 12:24:59 -05:00
Victor Stinner
55e614a2a8
Issue #11957 : Explicit parameter name when calling re.split() and re.sub()
2014-10-29 16:58:59 +01:00
Antoine Pitrou
be8d06f523
Issue #18216 : gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill.
2014-10-28 20:17:51 +01:00
Berker Peksag
ed68dd450a
Issue #22596 : support.transient_internet() now also catches
...
ConnectionRefusedError exceptions wrapped by urllib.error.URLError.
This change should fix sporadic failures in test_urllib2net.
2014-10-25 05:43:23 +03:00
Berker Peksag
8b63d3af9f
Issue #22596 : support.transient_internet() now also catches
...
ConnectionRefusedError exceptions wrapped by urllib.error.URLError.
This change should fix sporadic failures in test_urllib2net.
2014-10-25 05:42:30 +03:00
Antoine Pitrou
b64bca9852
Issue #13918 : Provide a locale.delocalize() function which can remove
...
locale-specific number formatting from a string representing a number,
without then converting it to a specific type. Patch by Cédric Krier.
2014-10-23 22:52:31 +02:00
Victor Stinner
b9d0199c07
Issue #22637 : avoid using a shell in uuid
...
Replace os.popen() with subprocess.Popen() in the uuid module.
2014-10-21 22:33:10 +02:00
Berker Peksag
1ed2e69a4a
Issue #22186 : Fix typos in Lib/.
...
Patch by Févry Thibault.
2014-10-19 18:07:05 +03:00
Berker Peksag
f23530f569
Issue #22186 : Fix typos in Lib/.
...
Patch by Févry Thibault.
2014-10-19 18:04:38 +03:00
Terry Jan Reedy
36d99dcf2b
Merge with 3.4
2014-10-18 17:10:32 -04:00
Terry Jan Reedy
dd09efdd53
Issue #20155 : Fix non-buildbot test failure on Windows. Patch by Claudiu Popa,
...
revised by R. David Murray.
2014-10-18 17:10:09 -04:00
Robert Collins
933430ab69
Issue #17401 : document closefd in io.FileIO docs and add to repr
...
closefd was documented in the open docs but not the matching FileIO
class documented. Further, closefd, part of the core state for the
object was not shown.
In review it was noted that the open docs are a little confusing about
the interaction between closefd and paths, so tweaked them at the same
time.
2014-10-18 13:32:43 +13:00
R David Murray
afce02ed38
Merge: #9351 : set_defaults on subparser is no longer ignored if set on parent.
2014-10-17 19:58:03 -04:00
R David Murray
7570cbdc6b
#9351 : set_defaults on subparser is no longer ignored if set on parent.
...
Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored. Now
the subparser set_defaults is honored.
Patch by Jyrki Pullianinen.
2014-10-17 19:55:11 -04:00
R David Murray
d2ff243b38
Merge: #21991 : make headerregistry params property MappingProxyType.
2014-10-17 19:32:08 -04:00
R David Murray
685b3495e1
#21991 : make headerregistry params property MappingProxyType.
...
It is unlikely anyone is using the fact that the dictionary returned
by the 'params' attribute was previously writable, but even if someone
is the API is provisional so this kind of change is acceptable (and
needed, to get the API "right" before it becomes official).
Patch by Stéphane Wirtel.
2014-10-17 19:30:13 -04:00
Antoine Pitrou
bc92bbd4d2
Issue #22653 : Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode.
2014-10-18 00:35:44 +02:00
Antoine Pitrou
d696732025
Issue #22653 : Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode.
2014-10-18 00:35:00 +02:00
Zachary Ware
f88cad0087
Merge with 3.4
2014-10-17 14:24:43 -05:00
Zachary Ware
be16d68071
Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built
2014-10-17 14:24:14 -05:00
Zachary Ware
459c36490f
Issue #16000 : Convert test_curses to use unittest
2014-10-17 14:10:51 -05:00
Zachary Ware
baf45c590c
Issue #16000 : Convert test_curses to use unittest
2014-10-17 13:59:18 -05:00
Benjamin Peterson
dc8899f0e2
merge 3.4 ( #22643 )
2014-10-15 13:40:15 -04:00
Benjamin Peterson
3f9f612b7d
merge 3.3 ( #22643 )
2014-10-15 13:40:01 -04:00
Benjamin Peterson
4d856895bd
test is cpython only
2014-10-15 13:39:46 -04:00
Benjamin Peterson
6925264334
merge 3.4 ( #22643 )
2014-10-15 11:49:15 -04:00
Benjamin Peterson
1cbb3fe775
merge 3.3 ( #22643 )
2014-10-15 11:48:41 -04:00
Benjamin Peterson
e1bd38c03c
fix integer overflow in unicode case operations ( closes #22643 )
2014-10-15 11:47:36 -04:00
Antoine Pitrou
94522ebe38
Issue #22641 : In asyncio, the default SSL context for client connections is now created using ssl.create_default_context(), for stronger security.
2014-10-15 16:59:58 +02:00
Antoine Pitrou
fd39a89e0e
Issue #22641 : In asyncio, the default SSL context for client connections is now created using ssl.create_default_context(), for stronger security.
2014-10-15 16:58:21 +02:00
Berker Peksag
6554b86b1f
Issue #21338 : Add silent mode for compileall.
...
quiet parameters of compile_{dir, file, path} functions now have
a multilevel value.
Also, -q option of the CLI now have a multilevel value.
Patch by Thomas Kluyver.
2014-10-15 11:10:57 +03:00
Ethan Furman
41d31967c6
Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants are SocketKind
2014-10-14 18:57:58 -07:00
Ethan Furman
7184bac544
Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants are SocketKind
2014-10-14 18:56:53 -07:00
Victor Stinner
c7dc55eb15
Merge 3.4 (asyncio)
2014-10-14 23:03:13 +02:00
Victor Stinner
f67f460242
Issue #18643 : asyncio.windows_utils now reuse socket.socketpair() on Windows if
...
available
Since Python 3.5, socket.socketpair() is now also available on Windows.
Make csock blocking before calling the accept() method, and fix also a typo in
an error message.
2014-10-14 22:56:25 +02:00
Charles-François Natali
98c745a773
Issue #18643 : Add socket.socketpair() on Windows.
2014-10-14 21:22:44 +01:00
Ethan Furman
987f3dd161
Issue22506: merge from 3.4
2014-10-14 08:59:14 -07:00
Ethan Furman
0ae550bdde
Issue22506: added methods on base Enum class now show up in dir of Enum subclass (3.4)
2014-10-14 08:58:32 -07:00
Charles-François Natali
4fa7a9fd1a
Merge.
2014-10-13 19:32:38 +01:00
Charles-François Natali
acbf5235b8
Issue #22435 : Fix a file descriptor leak when SocketServer bind fails.
2014-10-13 19:28:50 +01:00
Antoine Pitrou
44fff77684
Whitespace
2014-10-13 20:21:12 +02:00
Antoine Pitrou
0373a106a1
Issue #17636 : Circular imports involving relative imports are now supported.
2014-10-13 20:19:45 +02:00
Charles-François Natali
0f4f048fa5
Issue #22435 : Fix a file descriptor leak when SocketServer bind fails.
2014-10-13 19:19:26 +01:00
R David Murray
b0f5686ba4
#20815 : small readability improvements in ipaddress tests.
2014-10-12 15:17:44 -04:00
R David Murray
7567865867
#20815 : small readability improvements in ipaddress tests.
...
Patch by Michel Albert. We don't normally do patches that just tweak
whitespace, but ipaddress is relatively new and the package maintainers
approved the patch.
2014-10-12 15:17:22 -04:00
R David Murray
95cbe63001
Merge: #11973 : add test for previously fixed kevent signed/unsigned bug.
2014-10-12 12:42:01 -04:00
R David Murray
90f7afda61
#11973 : add test for previously fixed kevent signed/unsigned bug.
...
Patch by David Naylor.
2014-10-12 12:39:46 -04:00
Georg Brandl
b3ac84322f
#16040 : fix unlimited read from connection in nntplib.
2014-10-12 08:50:11 +02:00
Victor Stinner
2de8a6980a
(Merge 3.4) Issue #22601 : run_forever() now consumes BaseException of the
...
temporary task
If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
2014-10-11 14:35:33 +02:00
Victor Stinner
c8bd53f815
Issue #22601 : run_forever() now consumes BaseException of the temporary task
...
If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
2014-10-11 14:30:18 +02:00
Antoine Pitrou
759920c5cb
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:51:04 +02:00
Antoine Pitrou
9086f9260f
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:49:32 +02:00
Brett Cannon
1eb32c2045
Issue #20152 : Port the array module to Argument Clinic.
2014-10-10 16:26:45 -04:00
Petri Lehtinen
221439dd61
#11694 : merge with 3.4
2014-10-10 21:29:43 +03:00
Petri Lehtinen
3894b2a24f
Issue #11694 : Raise ConversionError in xdrlib as documented
2014-10-10 21:21:52 +03:00
Victor Stinner
1aa3cb6030
(Merge 3.4) test_venv: use support.rmtree() instead of shutil.rmtree() to fix
...
sporadic failures on Windows
2014-10-10 14:23:25 +02:00
Victor Stinner
866c4e2188
test_venv: use support.rmtree() instead of shutil.rmtree() to fix sporadic
...
failures on Windows
2014-10-10 14:23:00 +02:00
Berker Peksag
8ee1513ada
Issue #21456 : Skip two tests in test_urllib2net.py if _ssl module not present.
...
Patch by Remi Pointel.
2014-10-10 14:35:51 +03:00
Berker Peksag
b77983d2bd
Issue #21456 : Skip two tests in test_urllib2net.py if _ssl module not present.
...
Patch by Remi Pointel.
2014-10-10 14:34:16 +03:00
Serhiy Storchaka
7438e4b56f
Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub()
...
and re.subn().
2014-10-10 11:06:31 +03:00
R David Murray
4487dd0ed5
#18615 : Make sndhdr return namedtuples.
...
Patch by Claudiu Popa.
2014-10-09 16:59:30 -04:00
Antoine Pitrou
94262ebc9c
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:02:40 +02:00
Antoine Pitrou
0ddbf4795f
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:00:09 +02:00
Antoine Pitrou
b1fdf47ff5
Issue #21965 : Add support for in-memory SSL to the ssl module.
...
Patch by Geert Jansen.
2014-10-05 20:41:53 +02:00
Antoine Pitrou
414e15a88d
Closes #21173 : Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
2014-10-05 20:04:06 +02:00
Antoine Pitrou
1bf974dc6e
Closes #21173 : Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
2014-10-05 20:02:28 +02:00
R David Murray
861470c836
#16518 : Bring error messages in harmony with docs ("bytes-like object")
...
Some time ago we changed the docs to consistently use the term 'bytes-like
object' in all the contexts where bytes, bytearray, memoryview, etc are used.
This patch (by Ezio Melotti) completes that work by changing the error
messages that previously reported that certain types did "not support the
buffer interface" to instead say that a bytes-like object is required. (The
glossary entry for bytes-like object references the discussion of the buffer
protocol in the docs.)
2014-10-05 11:47:01 -04:00
Victor Stinner
d577cea8ab
Merge 3.4
2014-10-05 17:38:45 +02:00
Victor Stinner
bed04a77ee
cleanup test_posix
2014-10-05 17:37:59 +02:00
Victor Stinner
047b7ae566
Issue #22390 : Remove files created by tests
2014-10-05 17:37:41 +02:00
Victor Stinner
f4e4b83824
(Merge 3.4) Issue #22290 : Fix error handling in the _posixsubprocess module.
...
* Don't call the garbage collector with an exception set: it causes an
assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
2014-10-05 17:25:48 +02:00
Victor Stinner
8f437aac06
Issue #22290 : Fix error handling in the _posixsubprocess module.
...
* Don't call the garbage collector with an exception set: it causes an
assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
2014-10-05 17:25:19 +02:00
Antoine Pitrou
4aae276eca
Issue #11271 : concurrent.futures.Executor.map() now takes a *chunksize*
...
argument to allow batching of tasks in child processes and improve
performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
2014-10-04 20:20:10 +02:00
Serhiy Storchaka
e4f47088af
Fixed tests on Windows for issue #21883 .
2014-10-04 16:09:02 +03:00
Serhiy Storchaka
3deeeb0c39
Issue #21883 : os.path.join() and os.path.relpath() now raise a TypeError with
...
more helpful error message for unsupported or mismatched types of arguments.
2014-10-04 14:58:43 +03:00
Benjamin Peterson
91b62c4a8a
merge 3.4
2014-10-03 18:17:30 -04:00
Benjamin Peterson
91244e01bb
separate cert loading tests into Windows and non-Windows cases
2014-10-03 18:17:15 -04:00
Benjamin Peterson
8b9cfa1066
merge 3.4 ( #22449 )
2014-10-03 17:33:45 -04:00
Benjamin Peterson
5915b0f924
also use openssl envvars to find certs on windows ( closes #22449 )
...
Patch by Christian Heimes and Alex Gaynor.
2014-10-03 17:27:05 -04:00
R David Murray
b55f944fa9
Merge: #12780 : update inspect test skipIf for PEP 3147.
2014-10-03 11:16:08 -04:00
R David Murray
32562d7da3
#12780 : update inspect test skipIf for PEP 3147.
...
The test needs to be skipped if unicodedata is either part of the
main binary (a repackaging of cpython on Windows?) or has python
source (pypy?). PEP 3147 makes __file__ point to the .py source,
so we need to change the extension check from looking for the
old .pyc/.pyo to just looking for .py.
Note that this skip should never trigger on CPython itself, so
one could argue it should be dropped instead. But since it exists,
why risk breaking someone else's python.
2014-10-03 11:15:38 -04:00
Antoine Pitrou
392f4139b3
Make test_datetime a better citizen (issue #22540 )
2014-10-03 11:25:30 +02:00
R David Murray
f355943002
Merge: #8473 : Add tests that doctest uses universal newlines in testfile.
2014-10-02 22:43:51 -04:00
R David Murray
b48cb29ac4
#8473 : Add tests that doctest uses universal newlines in testfile.
...
Python3 does not have the bug covered by the issue.
2014-10-02 22:42:42 -04:00
Serhiy Storchaka
df77518d8c
Issue #20079 : Fixed tests.
2014-10-02 11:36:31 +03:00
Serhiy Storchaka
4601df58e7
Issue #20079 : Fixed tests.
2014-10-02 11:36:12 +03:00
Georg Brandl
4480d30b8b
ref #19855 : skip uuid test_find_mac on non-Posix as in later branches
2014-10-01 22:31:04 +02:00
Georg Brandl
ea68398355
Closes #20218 : Added convenience methods read_text/write_text and read_bytes/
...
write_bytes to pathlib.Path objects.
Thanks to Christopher Welborn and Ram Rachum for original patches.
2014-10-01 19:12:33 +02:00
Victor Stinner
3b09d21a9d
Issue #22333 : test_threaded_import now displays elapsed time in verbose mode.
2014-10-01 01:48:05 +02:00
Victor Stinner
d7722d7147
Issue #22333 : Extend timeout in test_threaded_import
...
Check if the sporadic failure is related to a timeout.
The test just failed on the buildbot "x86 Windows7 3.x": 1 thread done / 20
(the 'done' condition was not signaled because 1 < 20).
2014-10-01 01:45:16 +02:00
Georg Brandl
51c116223e
Issue #19855 : uuid.getnode() on Unix now looks on the PATH for the
...
executables used to find the mac address, with /sbin and /usr/sbin as
fallbacks.
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface. Original patch by Kent Frazier.
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2014-09-30 19:34:19 +02:00
Georg Brandl
3bc35672a2
Backport b533cc11d114 to fix intermittent test_urllibnet failures.
2014-09-30 17:30:18 +02:00
Victor Stinner
6b8e0ed562
(Merge 3.4) faulthandler: test_gil_released() now uses _sigsegv() instead of
...
_read_null(), because _read_null() cannot be used on AIX. On AIX, reading from
NULL is allowed: the first page of memory is a mapped read-only on AIX.
_read_null() and _sigabrt() don't accept parameters.
2014-09-30 13:55:30 +02:00
Victor Stinner
5083828d65
faulthandler: test_gil_released() now uses _sigsegv() instead of _read_null(),
...
because _read_null() cannot be used on AIX. On AIX, reading from NULL is
allowed: the first page of memory is a mapped read-only on AIX.
2014-09-30 13:54:14 +02:00
Benjamin Peterson
58ee2d31ab
merge 3.4 ( #22517 )
2014-09-29 22:49:05 -04:00
Benjamin Peterson
c44eb73473
merge 3.3 ( #22517 )
2014-09-29 22:48:51 -04:00
Benjamin Peterson
bbd0a323ae
clear BufferedRWPair weakrefs on deallocation ( closes #22517 )
2014-09-29 22:46:57 -04:00
Serhiy Storchaka
9baa5b2de2
Issue #22437 : Number of capturing groups in regular expression is no longer
...
limited by 100.
2014-09-29 22:49:23 +03:00
R David Murray
c31e6227f9
#17442 : Add chained traceback support to InteractiveInterpreter.
...
Patch by Claudiu Popa.
2014-09-29 11:25:00 -04:00
Alexander Belopolsky
6c7a4182f5
Closes issue #20858 : Enhancements/fixes to pure-python datetime module
...
This patch brings the pure-python datetime more in-line with the C
module. Patch contributed by Brian Kearns, a PyPy developer. PyPy
project has been running these modifications in PyPy2 stdlib.
This commit includes:
- General PEP8/cleanups;
- Better testing of argument types passed to constructors;
- Removal of duplicate operations;
- Optimization of timedelta creation;
- Caching the result of __hash__ like the C accelerator;
- Enhancements/bug fixes in tests.
2014-09-28 19:11:56 -04:00
Benjamin Peterson
a2f93885b0
merge 3.4 ( #22379 )
2014-09-28 12:57:22 -04:00
Benjamin Peterson
c31f12d196
check that exception messages are not empty ( #22379 )
...
Patch by Yongzhi Pan.
2014-09-28 12:56:42 -04:00
Serhiy Storchaka
402e1e388d
Issue #9850 : Fixed macpath.join() for empty first component. Patch by
...
Oleg Oshmyan.
2014-09-27 18:55:15 +03:00
Serhiy Storchaka
ca534ab495
Issue #9850 : Fixed macpath.join() for empty first component. Patch by
...
Oleg Oshmyan.
2014-09-27 18:53:23 +03:00
Berker Peksag
fe21e4d4d7
Issue #16324 : _charset parameter of MIMEText now also accepts email.charset.Charset instances.
...
Initial patch by Claude Paroz.
2014-09-27 00:57:29 +03:00
Yury Selivanov
081bbf6b28
inspect: Fix getsource() to support decorated functions.
...
Issue #1764286 . Patch by Claudiu Popa.
2014-09-26 17:34:54 -04:00
Yury Selivanov
97e2e06af8
os: Include posix functions in os.__all__. Closes issue #18554 .
...
Patch by Ronald Oussoren.
2014-09-26 12:33:06 -04:00
Yury Selivanov
d359013eea
asyncio.test_tasks: Fix test_env_var_debug to use correct asyncio module
2014-09-25 19:12:37 -04:00
Yury Selivanov
d5a8f5807f
asyncio.test_tasks: Fix test_env_var_debug to use correct asyncio module
2014-09-25 19:12:10 -04:00
Yury Selivanov
1cfd36fdd7
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:09:09 -04:00
Yury Selivanov
592ada9b4b
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:07:56 -04:00
Nick Coghlan
bca9acf7ca
Issue #18093 : fix test_capi test skip due to _testembed move
2014-09-25 19:48:15 +10:00
Yury Selivanov
f45ea46fe8
asyncio: Reverting 69d474dab479 as issue #21645 is now closed and debug is no longer needed
2014-09-24 23:41:28 -04:00
Yury Selivanov
d1223a7adc
asyncio.test_events: Partially reverting f7643c893587 to stay in sync with tulip codebase
2014-09-24 23:30:03 -04:00
Victor Stinner
3e4a80a2e1
(Merge 3.4) test_faulthandler: fix typo
2014-09-25 00:39:17 +02:00
Victor Stinner
29001c8319
test_faulthandler: fix typo
2014-09-25 00:38:48 +02:00
Berker Peksag
cf84098884
Issue #16056 : Rename test method in test_statistics to avoid conflict.
2014-09-24 15:03:57 +03:00
Berker Peksag
f8c111d4d7
Issue #16056 : Rename test method in test_statistics to avoid conflict.
2014-09-24 15:03:25 +03:00
Serhiy Storchaka
e9a086bf01
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:29:27 +03:00
Serhiy Storchaka
5e193ac0bd
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:26:25 +03:00
Serhiy Storchaka
c563caf3a2
Issue #22362 : Forbidden ambiguous octal escapes out of range 0-0o377 in
...
regular expressions.
2014-09-23 23:22:41 +03:00