Victor Stinner
2b60b7237e
regrtest: mention in tests run sequentially or in parallel
2016-03-24 11:55:29 +01:00
Victor Stinner
5de16e80c1
regrtest: fix --fromfile feature
...
* Update code for the name regrtest output format.
* Enhance also test_regrtest test on --fromfile
2016-03-24 09:43:00 +01:00
Victor Stinner
923590e397
Fix DeprecationWarning on Windows
...
Issue #25911 : Use support.check_warnings() to expect or ignore
DeprecationWarning in test_os.
2016-03-24 09:11:48 +01:00
Victor Stinner
0069aef51a
Fix test_spwd on OpenIndiana
...
Issue #18787 : restore "bin" name in test_spwd but catch KeyError.
2016-03-23 21:15:55 +01:00
Victor Stinner
c53195bbf0
Try to fix test_gdb on s390x SLES 3.x
...
Ignore empty lines in stderr.
2016-03-23 21:08:25 +01:00
Stefan Krah
1129084ebd
Issue #26621 : Remove unnecessary test.
2016-03-23 20:53:22 +01:00
Stefan Krah
66e9d03bf4
Issue #26621 : Update libmpdec version and remove unnecessary test case.
2016-03-23 20:50:10 +01:00
Victor Stinner
4a1c7d2c36
Try to fix test_spwd on OpenIndiana
...
Issue #18787 : try to get the "root" entry which should exist on all UNIX
instead of "bin" which doesn't exist on OpenIndiana.
2016-03-23 18:45:55 +01:00
Victor Stinner
904f5def5c
Try to fix test_gdb on s390x buildbots
2016-03-23 18:32:54 +01:00
Victor Stinner
412a5e7e23
faulthandler: only log fatal exceptions
...
Issue #23848 , #26622 :
* faulthandler now only logs fatal Windows exceptions.
* write error code as decimal, not as hexadecimal
* replace "Windows exception" with "Windows fatal exception"
2016-03-23 14:44:14 +01:00
Victor Stinner
69649f21f0
regrtest: display test duration in sequential mode
...
Only display duration if a test takes more than 30 seconds.
2016-03-23 12:14:10 +01:00
Victor Stinner
404cdc5a92
faulthandler: add Windows exception handler
...
Issue #23848 : On Windows, faulthandler.enable() now also installs an exception
handler to dump the traceback of all Python threads on any Windows exception,
not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
2016-03-23 10:39:17 +01:00
Victor Stinner
6d7f4f6675
regrtest: add timeout to main process when using -jN
...
libregrtest: add a watchdog to run_tests_multiprocess() using
faulthandler.dump_traceback_later().
2016-03-23 02:04:32 +01:00
Victor Stinner
e19558af1b
Add a source parameter to warnings.warn()
...
Issue #26604 :
* Add a new optional source parameter to _warnings.warn() and warnings.warn()
* Modify asyncore, asyncio and _pyio modules to set the source parameter when
logging a ResourceWarning warning
2016-03-23 00:28:08 +01:00
Victor Stinner
f9a71153e9
Issue #26588 : remove debug traces from _tracemalloc.
2016-03-22 23:54:42 +01:00
Victor Stinner
92c21d7a7c
Issue #26588 : skip test_warnings.test_tracemalloc()
2016-03-22 21:26:31 +01:00
Victor Stinner
84aab09421
Issue #26588 : add debug traces
...
Try to debug random failure on buildbots.
2016-03-22 16:13:31 +01:00
Victor Stinner
24f949e10c
regrtest: add time to output
...
Timestamps should help to debug slow buildbots, and timeout and hang on
buildbots.
2016-03-22 15:14:09 +01:00
Victor Stinner
10b73e1748
Add C functions _PyTraceMalloc_Track()
...
Issue #26530 :
* Add C functions _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() to track
memory blocks using the tracemalloc module.
* Add _PyTraceMalloc_GetTraceback() to get the traceback of an object.
2016-03-22 13:39:05 +01:00
Victor Stinner
e492ae50e2
tracemalloc now supports domains
...
Issue #26588 :
* The _tracemalloc now supports tracing memory allocations of multiple address
spaces (domains).
* Add domain parameter to tracemalloc_add_trace() and
tracemalloc_remove_trace().
* tracemalloc_add_trace() now starts by removing the previous trace, if any.
* _tracemalloc._get_traces() now returns a list of (domain, size,
traceback_frames): the domain is new.
* Add tracemalloc.DomainFilter
* tracemalloc.Filter: add an optional domain parameter to the constructor and a
domain attribute
* Sublte change: use Py_uintptr_t rather than void* in the traces key.
* Add tracemalloc_config.use_domain, currently hardcoded to 1
2016-03-22 12:58:23 +01:00
Serhiy Storchaka
e431d3c9aa
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:36:29 +02:00
Serhiy Storchaka
97eee1cfda
Added new tests for detecting Python source code encoding.
2016-03-20 22:29:40 +02:00
Berker Peksag
e2021f2ecd
Issue #12813 : uuid.uuid4() no longer depends on ctypes
...
uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
2016-03-20 17:29:56 +02:00
Berker Peksag
d02eb8a713
Issue #19164 : Improve exception message of uuid.UUID()
...
Patch by jgauthier.
2016-03-20 16:49:10 +02:00
Berker Peksag
e3385b4e3d
Issue #19265 : Improve test coverage of datetime.tzinfo
...
Without the patch, line 1010 of Lib/datetime.py wasn't covered
by the test suite.
Patch by Colin Williams.
2016-03-19 13:16:32 +02:00
Victor Stinner
e0b75b7e87
Fix test_ssl.test_refcycle()
...
Issue #26590 : support.check_warnings() stores warnins, but ResourceWarning now
comes with a reference to the socket object which indirectly keeps the socket
alive.
2016-03-21 17:26:04 +01:00
Berker Peksag
1cd4ff6284
Issue #26560 : Avoid potential ValueError in BaseHandler.start_response
...
Initial patch by Peter Inglesby.
2016-03-19 09:04:59 +02:00
Serhiy Storchaka
a051bf3afb
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:47:48 +02:00
Serhiy Storchaka
fc6990d382
Issues #25643 , #26581 : Added new tests for detecting Python source code encoding.
2016-03-20 23:12:00 +02:00
Berker Peksag
bd5b1a613b
Issue #12813 : uuid.uuid4() no longer depends on ctypes
...
uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
2016-03-20 17:30:25 +02:00
Berker Peksag
c0e7a9c72b
Issue #19164 : Improve exception message of uuid.UUID()
...
Patch by jgauthier.
2016-03-20 16:49:29 +02:00
Berker Peksag
02cce69217
Issue #19265 : Improve test coverage of datetime.tzinfo
...
Without the patch, line 1010 of Lib/datetime.py wasn't covered
by the test suite.
Patch by Colin Williams.
2016-03-19 13:16:52 +02:00
Berker Peksag
3c3d7f4b99
Issue #18787 : spwd.getspnam() now raises a PermissionError if the user
...
doesn't have privileges.
2016-03-19 11:44:17 +02:00
Victor Stinner
74879e4179
Try again to fix test_warnings on Windows
...
Issue #26567 : normalize newlines in test_tracemalloc.
2016-03-19 10:00:08 +01:00
Berker Peksag
cf934a1c9b
Issue #26560 : Avoid potential ValueError in BaseHandler.start_response
...
Initial patch by Peter Inglesby.
2016-03-19 09:05:59 +02:00
Victor Stinner
bfab932971
Try to fix test_warnings on Windows
...
Issue #26567 .
2016-03-19 02:51:45 +01:00
Victor Stinner
eedf13fe23
Fix test_logging
...
Issue #26568 : Fix implementation of showwarning() and formatwarning() for
test_logging.
2016-03-19 02:11:56 +01:00
Victor Stinner
914cde89d4
On ResourceWarning, log traceback where the object was allocated
...
Issue #26567 :
* Add a new function PyErr_ResourceWarning() function to pass the destroyed
object
* Add a source attribute to warnings.WarningMessage
* Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where
source object was allocated.
2016-03-19 01:03:51 +01:00
Victor Stinner
1231a4615f
Add _showwarnmsg() and _formatwarnmsg() to warnings
...
Issue #26568 : add new _showwarnmsg() and _formatwarnmsg() functions to the
warnings module.
The C function warn_explicit() now calls warnings._showwarnmsg() with a
warnings.WarningMessage as parameter, instead of calling warnings.showwarning()
with multiple parameters.
_showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was
replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was
replaced.
2016-03-19 00:47:17 +01:00
Steve Dower
3ca3342307
Issue #26313 : ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
2016-03-17 15:02:53 -07:00
Steve Dower
8dd7aebc23
Issue #26313 : ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
2016-03-17 15:02:39 -07:00
Ned Deily
c9188000d7
Issue #26583 : merge from 3.5
2016-03-17 17:56:42 -04:00
Ned Deily
1c80b152bd
Issue #26583 : Skip test_timestamp_overflow in test_import if bytecode
...
files cannot be written.
2016-03-17 17:53:52 -04:00
Donald Stufft
a209981f5f
Merge 3.5 into default
2016-03-17 11:01:35 -04:00
Donald Stufft
c488bc6a76
Merge 3.4 into 3.5
2016-03-17 11:01:04 -04:00
Donald Stufft
2bc69c49e1
Upgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3
2016-03-17 11:00:08 -04:00
Victor Stinner
ec748c47ac
Merge 3.5
2016-03-17 09:11:54 +01:00
Victor Stinner
5c13aa1562
Fix pyclbr to support importing packages
...
Issue #26569 : Fix pyclbr.readmodule() and pyclbr.readmodule_ex() to support
importing packages.
2016-03-17 09:06:41 +01:00
Martin Panter
ce911c3fed
Issue #26499 : Fixes to HTTPResponse.readline() and read1(), by Silent Ghost
2016-03-17 06:42:48 +00:00
Victor Stinner
861d9abfcf
faulthandler now works in non-Python threads
...
Issue #26563 :
* Add _PyGILState_GetInterpreterStateUnsafe() function: the single
PyInterpreterState used by this process' GILState implementation.
* Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from
autoInterpreterState in last resort. The function now accepts NULL for interp
and current_tstate parameters.
* test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
2016-03-16 22:45:24 +01:00
Victor Stinner
ad524375af
Fail if PyMem_Malloc() is called without holding the GIL
...
Issue #26563 : Debug hooks on Python memory allocators now raise a fatal error
if functions of the PyMem_Malloc() family are called without holding the GIL.
2016-03-16 12:12:53 +01:00
Martin Panter
32f2eb4941
Issue #21042 : Revert Linux find_library() to return just filename
...
This reverts most of revision 3092cf163eb4. The change worked on x86
architectures, but did not work on ARM, probably due to extra ABI flags in
the ldconfig output.
2016-03-17 07:50:22 +00:00
Martin Panter
ec195fba5b
Issue #26499 : Merge HTTPResponse fix from 3.5
2016-03-17 07:05:34 +00:00
Victor Stinner
82f04e2dfd
regrtest: Fix module.__path__
...
Issue #26538 : libregrtest: Fix setup_tests() to keep module.__path__ type
(_NamespacePath), don't convert to a list.
Add _NamespacePath.__setitem__() method to importlib._bootstrap_external.
2016-03-15 23:08:44 +01:00
Victor Stinner
6453e9ed0a
Issue #26564 : Fix test_capi
2016-03-15 23:36:28 +01:00
Victor Stinner
b380010782
Merge 3.5 (test_faulthandler)
2016-03-15 17:24:13 +01:00
Victor Stinner
57003f81ea
faulthandler: Test Py_FatalError() with GIL released
...
Issue #26558 .
2016-03-15 17:23:35 +01:00
Victor Stinner
32eb840a42
Issue #26566 : Rewrite test_signal.InterProcessSignalTests
...
* Add Lib/test/signalinterproctester.py
* Don't disable the garbage collector anymore
* Don't use os.fork() with a subprocess to not inherit existing signal handlers
or threads: start from a fresh process
* Don't use UNIX kill command to send a signal but Python os.kill()
* Use a timeout of 10 seconds to wait for the signal instead of 1 second
* Always use signal.pause(), instead of time.wait(1), to wait for a signal
* Use context manager on subprocess.Popen
* remove code to retry on EINTR: it's no more needed since the PEP 475
* remove unused function exit_subprocess()
* Cleanup the code
2016-03-15 11:12:35 +01:00
Antoine Pitrou
58f2bd86fb
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:52:51 +01:00
Antoine Pitrou
62b6a0d70c
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:48:28 +01:00
Robert Collins
bfef0be420
#25320 : Handle sockets in directories unittest discovery is scanning.
...
Patch from Victor van den Elzen.
2016-03-15 13:33:28 +13:00
Robert Collins
ecd5383891
#25320 : Handle sockets in directories unittest discovery is scanning.
...
Patch from Victor van den Elzen.
2016-03-15 13:29:17 +13:00
Victor Stinner
c4aec3628b
Check the GIL in PyObject_Malloc()
...
Issue #26558 : The debug hook of PyObject_Malloc() now checks that the GIL is
held when the function is called.
2016-03-14 22:26:53 +01:00
Victor Stinner
08572f68a9
Issue #26516 : Fix test_capi on AIX
...
Fix regex for parse a pointer address.
2016-03-14 21:55:43 +01:00
Victor Stinner
0ab7d0978b
Merge 3.5 (test_venv)
2016-03-14 18:22:12 +01:00
Victor Stinner
87d6e1364c
Fix test_venv on FreeBSD buildbot
...
Ignore pip warning in test_venv.test_with_venv().
2016-03-14 18:21:58 +01:00
Victor Stinner
3719779765
Merge 3.5 (test_site)
2016-03-14 17:47:30 +01:00
Victor Stinner
21d0e1b5fc
Skip test_site if USER_SITE cannot be created
...
Issue #17758 : Skip test_site if site.USER_SITE directory doesn't exist and
cannot be created.
2016-03-14 17:47:03 +01:00
Victor Stinner
b3adb1adeb
Issue #26516 : Fix test_capi on 32-bit system
...
On 32-bit system, only 4 bytes after dumped for the tail.
2016-03-14 17:40:09 +01:00
Victor Stinner
a1bc28a91d
Issue #26516 : Fix test_capi on Windows
...
Pointers are formatted differently.
2016-03-14 17:10:36 +01:00
Victor Stinner
34be807ca4
Add PYTHONMALLOC env var
...
Issue #26516 :
* Add PYTHONMALLOC environment variable to set the Python memory
allocators and/or install debug hooks.
* PyMem_SetupDebugHooks() can now also be used on Python compiled in release
mode.
* The PYTHONMALLOCSTATS environment variable can now also be used on Python
compiled in release mode. It now has no effect if set to an empty string.
* In debug mode, debug hooks are now also installed on Python memory allocators
when Python is configured without pymalloc.
2016-03-14 12:04:26 +01:00
Serhiy Storchaka
c877658d1f
Issue #20556 : Used specific assert methods in threading tests.
2016-03-14 10:40:14 +02:00
Serhiy Storchaka
8c0f0c5c1e
Issue #20556 : Used specific assert methods in threading tests.
2016-03-14 10:28:59 +02:00
Berker Peksag
04bc5b9e48
Issue #747320 : Use email.utils.formatdate() to avoid code duplication
...
in BaseHTTPRequestHandler
Initial patch by karlcow.
2016-03-14 06:06:03 +02:00
Berker Peksag
0647ef05eb
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:28 +02:00
Berker Peksag
20be53e5b5
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:02 +02:00
Steve Dower
11b3918164
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:07:34 -08:00
Steve Dower
126c9c17ef
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:06:23 -08:00
Serhiy Storchaka
6e4150f36b
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:53:09 +02:00
Serhiy Storchaka
8a7240eeed
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:51:16 +02:00
Victor Stinner
15a83e845f
Revert change 291d47954618
...
Revert:
"Always test datetime.strftime("%4Y")
Issue #13305 : Always test datetime.datetime.strftime("%4Y") for years < 1900."
In fact, strftime("%4Y") fails on most platforms.
2016-03-12 08:16:48 +01:00
Victor Stinner
25caed546d
Merge 3.5
2016-03-11 22:53:15 +01:00
Victor Stinner
d7569637b5
Issue #20589 : Fix test_pathlib
2016-03-11 22:53:00 +01:00
Victor Stinner
474ebbbe50
Always test datetime.strftime("%4Y")
...
Issue #13305 : Always test datetime.datetime.strftime("%4Y") for years < 1900.
2016-03-11 22:36:14 +01:00
Victor Stinner
2c2a4e63d7
Add Mock.assert_called()
...
Issue #26323 : Add assert_called() and assert_called_once() methods to
unittest.mock.Mock.
2016-03-11 22:17:48 +01:00
Berker Peksag
d0e9b6919f
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:08:11 +02:00
Berker Peksag
04d4229719
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:07:27 +02:00
Terry Jan Reedy
a55553d7e3
Merge with 3.5
2016-03-11 15:31:02 -05:00
Terry Jan Reedy
ca0250a878
Issue 25959: Explain in docstring that PhotoImage.zoom arguments are
...
multipliers, not final sizes. Explain y default for .zoom and .subsample.
Initial patch by Serhiy Storchaka.
2016-03-11 15:30:35 -05:00
Serhiy Storchaka
2d68f18656
Issue #26177 : Fixed the keys() method for Canvas and Scrollbar widgets.
2016-03-09 10:52:08 +02:00
Martin Panter
b9f3114d42
Issue #21042 : Return full path in ctypes.util.find_library() on Linux
...
Patch by Tamás Bence Gedai.
2016-03-10 01:06:23 +00:00
Serhiy Storchaka
42a4366ad5
Issue #26177 : Fixed the keys() method for Canvas and Scrollbar widgets.
...
Added few missed tests for configure options.
2016-03-09 10:33:51 +02:00
Serhiy Storchaka
aadaa3614e
Issue #15068 : Avoid creating a reference loop in fileinput.
2016-03-08 23:36:25 +02:00
Serhiy Storchaka
0554d83f0f
Issue #15068 : Avoid creating a reference loop in fileinput.
2016-03-08 23:35:35 +02:00
Serhiy Storchaka
786e922054
Issue #25911 : Tring to silence deprecation warnings in bytes path walk tests.
2016-03-08 21:26:44 +02:00
Serhiy Storchaka
ada6db7870
Issue #25911 : Tring to silence deprecation warnings in bytes path walk tests.
2016-03-08 21:26:26 +02:00
Serhiy Storchaka
706379ae0d
Backed out changeset da020e408c7f
2016-03-08 21:16:47 +02:00
Serhiy Storchaka
7ab61ae8aa
Backed out changeset f9e22717722d
2016-03-08 21:15:43 +02:00
Serhiy Storchaka
adca8464b1
Backed out changeset 19a3e0e664af
2016-03-08 21:13:35 +02:00
Serhiy Storchaka
674e2d0ea0
Issue #15068 : Got rid of excessive buffering in fileinput.
...
The bufsize parameter is now deprecated and ignored.
2016-03-08 18:35:19 +02:00
Serhiy Storchaka
cc2dbc5844
Issue #15068 : Got rid of excessive buffering in the fileinput module.
...
The bufsize parameter is no longer used.
2016-03-08 18:28:36 +02:00
Serhiy Storchaka
238fecd75c
Issues #23808 , #25911 : Trying to fix walk tests on Windows.
...
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
2016-03-08 16:12:46 +02:00
Serhiy Storchaka
55e3218eee
Issues #23808 , #25911 : Trying to fix walk tests on Windows.
...
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
2016-03-08 16:12:09 +02:00
Serhiy Storchaka
388b90f28e
Issues #23808 , #25911 : Trying to fix walk tests on Windows.
...
On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
2016-03-08 16:11:26 +02:00
Raymond Hettinger
20b3e72b8d
Merge
2016-03-06 18:12:08 -08:00
Raymond Hettinger
e525ee3b48
Document another recipe for itertools: all_equal(). Inspired by David Beazley.
2016-03-06 18:11:38 -08:00
Alexander Belopolsky
a2998a63c8
Closes #19475 : Added timespec to the datetime.isoformat() method.
...
Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.
Original patch by Alessandro Cucci.
2016-03-06 14:58:43 -05:00
Berker Peksag
d07a1cb53b
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:44 +02:00
Berker Peksag
d66dd5ce68
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:15 +02:00
Berker Peksag
48238c7e37
Issue #2202 : Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
...
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
2016-03-06 16:17:47 +02:00
Berker Peksag
e88dd1c32c
Issue #2202 : Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
...
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
2016-03-06 16:16:40 +02:00
Serhiy Storchaka
8cc859c103
Issue #26167 : Backported copy tests.
2016-03-06 15:03:07 +02:00
Serhiy Storchaka
818e18dd94
Issue #26167 : Minimized overhead in copy.copy() and copy.deepcopy().
...
Optimized copying and deepcopying bytearrays, NotImplemented, slices,
short lists, tuples, dicts, sets.
2016-03-06 14:56:57 +02:00
Serhiy Storchaka
de128e19e2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:12:04 +02:00
Serhiy Storchaka
aabafe7bc2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:10:24 +02:00
Serhiy Storchaka
5608411a96
Issue #25718 : Fixed pickling and copying the accumulate() iterator with total is None.
2016-03-06 14:02:26 +02:00
Serhiy Storchaka
d55162517d
Issue #25718 : Fixed pickling and copying the accumulate() iterator with total is None.
2016-03-06 14:00:45 +02:00
Serhiy Storchaka
b6bfce6c0b
Issue #26475 : Fixed debugging output for regular expressions with the (?x) flag.
2016-03-06 09:17:39 +02:00
Serhiy Storchaka
a01a144aab
Issue #26475 : Fixed debugging output for regular expressions with the (?x) flag.
2016-03-06 09:15:47 +02:00
Serhiy Storchaka
a0d416f0d1
Issue #26482 : Allowed pickling recursive dequeues.
2016-03-06 08:55:21 +02:00
Berker Peksag
841b930a41
Issue #17940 : Remove redundant code from _Section.format_help()
...
Output of func(*args) stored in the next line:
item_help = join([func(*args) for func, args in self.items])
_Section.items only used by HelpFormatter._add_item() and it looks
like it doesn't have any side effects.
Patch by Yogesh Chaudhari.
2016-03-05 14:05:45 +02:00
Serhiy Storchaka
96c058b4de
Fixed typo in pickle tests.
2016-03-04 09:40:03 +02:00
Serhiy Storchaka
be70002866
Fixed typo in pickle tests.
2016-03-04 09:39:47 +02:00
Benjamin Peterson
0f04bc7959
merge 3.5 ( closes #26478 )
2016-03-03 22:10:52 -08:00
Benjamin Peterson
cfc2a1fc70
merge 3.4 ( closes #26478 )
2016-03-03 22:08:01 -08:00
Benjamin Peterson
f11b25b081
properly use the ObjArgs variant of CallMethod in dictview binary operations ( closes #26478 )
2016-03-03 22:05:36 -08:00
Berker Peksag
6282e656e9
Issue #26335 : Make mmap.write() return the number of bytes written like
...
other write methods.
Patch by Jakub Stasiak.
2016-03-02 19:30:18 +02:00
Yury Selivanov
d2dc15b26b
Merge 3.5 (issue #25888 )
2016-03-02 11:31:06 -05:00
Yury Selivanov
c724bae51c
coroutines: Error when awaiting on coroutine that's being awaited
...
Issue #25888
2016-03-02 11:30:46 -05:00
Yury Selivanov
5604446b3b
Merge 3.5 (issue #26338 )
2016-03-02 11:17:18 -05:00
Yury Selivanov
e076ffb068
asyncio: Remove duplicate bind addresses in create_server.
...
Patch by Sebastien Bourdeauducq (issue #26338 )
2016-03-02 11:17:01 -05:00
Yury Selivanov
06495ffe93
Merge 3.5 (issue #26347 )
2016-03-02 11:08:05 -05:00
Yury Selivanov
f9e1f2bda9
inspect: Fix BoundArguments.apply_defaults to handle empty arguments
...
Patch by Frederick Wagner (issue #26347 )
2016-03-02 11:07:47 -05:00
Yury Selivanov
a8ac8e336b
Merge 3.5 (issue #26221 )
2016-03-02 11:03:53 -05:00
Yury Selivanov
1bd030788d
asyncio: Prevent StopIteration from being thrown into a Future
...
Patch by Chris Angelico (issue #26221 )
2016-03-02 11:03:28 -05:00
Yury Selivanov
578bc5b80b
Merge 3.5 (issue #25647 )
2016-03-02 10:49:36 -05:00
Yury Selivanov
dce63234c5
asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647 )
...
Patch by Vladimir Rutsky.
2016-03-02 10:49:16 -05:00
Yury Selivanov
3ebaea005d
Sync selectors.py with upstream asyncio
2016-03-02 10:43:45 -05:00
Yury Selivanov
45c84cc0ca
Merge 3.5
2016-03-02 10:41:51 -05:00
Yury Selivanov
0c6a34409e
asyncio, selectors: Update to the upstream version
2016-03-02 10:37:59 -05:00
Yury Selivanov
90faa09152
asyncio: Update 3.4 asyncio/test_tasks to upstream version
2016-03-02 10:33:22 -05:00
Victor Stinner
f2192855dd
Merge 3.5
2016-03-01 22:07:53 +01:00
Victor Stinner
337986740f
Issue #26464 : Fix unicode_fast_translate() again
...
Initialize i variable if the string is non-ASCII.
2016-03-01 21:59:58 +01:00
Victor Stinner
3d9d77a3dc
Merge 3.5
2016-03-01 21:30:50 +01:00
Victor Stinner
6c9aa8f2bf
Fix str.translate()
...
Issue #26464 : Fix str.translate() when string is ASCII and first replacements
removes character, but next replacement uses a non-ASCII character or a string
longer than 1 character. Regression introduced in Python 3.5.0.
2016-03-01 21:30:30 +01:00
Serhiy Storchaka
42e49ac0da
Issue #26457 : Fixed the subnets() methods in IP network classes for the case
...
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.
2016-03-01 10:26:10 +02:00
Serhiy Storchaka
bb0dbd583b
Issue #26457 : Fixed the subnets() methods in IP network classes for the case
...
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.
2016-03-01 10:25:45 +02:00
Terry Jan Reedy
8131f14de9
Merge with 3.5
2016-03-01 01:19:02 -05:00
Terry Jan Reedy
5f582bdec8
Whitespace
2016-03-01 01:18:47 -05:00
Terry Jan Reedy
54f99500dd
Merge with 3.5
2016-03-01 01:13:21 -05:00