Victor Stinner
81950495ba
bpo-32692: Fix test_threading.test_set_and_clear() (GH-8331)
...
Increase the timeout: give timeout x 4 instead of timeout x 2 to
threads to wait until the Event is set, but reduce the sleep from 500
ms to 250 ms. So the test should be more reliable and faster!
2018-07-19 10:49:58 +02:00
Victor Stinner
686b4b5ff2
bpo-34130: Fix test_signal.test_warn_on_full_buffer() (GH-8327)
...
On Windows, sometimes test_signal.test_warn_on_full_buffer() fails to
fill the socketpair buffer. In that case, the C signal handler
succeed to write into the socket, it doesn't log the expected send
error, and so the test fail.
On Windows, the test now uses a timeout of 50 ms to fill the
socketpair buffer to fix this race condition.
Other changes:
* Begin with large chunk size to fill the buffer to speed up the
test.
* Add error messages to assertion errors to more easily identify
which assertion failed.
* Don't set the read end of the socketpair as non-blocking.
2018-07-18 18:29:54 +02:00
Victor Stinner
99bb6df66a
bpo-34130: Fix test_signal.test_socket() (GH-8326)
...
test_signal.test_socket(): On Windows, sometimes even if the C signal handler
succeed to write the signal number into the write end of the socketpair, the
test fails with a BlockingIOError on the non-blocking read.recv(1) because the
read end of the socketpair didn't receive the byte yet.
Fix the race condition on Windows by setting the read end as blocking.
2018-07-18 17:43:57 +02:00
Serhiy Storchaka
5d4cb54800
bpo-34141: Optimized pickling simple non-recursive values. (GH-8318)
2018-07-18 10:10:49 +03:00
Raymond Hettinger
feabae9617
Clarify ValueError's broad applicability (GH-8313)
2018-07-17 08:35:26 -07:00
Zackery Spytz
28f07364f0
bpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an exception set (GH-8282)
2018-07-17 09:31:44 +03:00
INADA Naoki
56d8f57b83
bpo-33967: Fix wrong use of assertRaises (GH-8306)
2018-07-17 13:44:47 +09:00
Raymond Hettinger
01b7d58982
bpo-34123: Fix missed documentation update for dict.popitem(). (GH-8292)
2018-07-16 17:20:15 -07:00
Jon Ribbens
c9265c1534
bpo-34124: Fix markup of message_from_binary_file() signature (GH-8297)
2018-07-16 20:19:42 +03:00
Antoine Pitrou
961d54c5c1
bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229)
...
bpo-32430: Rename Modules/Setup.dist to Modules/Setup
Remove the necessity to copy the former manually to the latter when updating the local source tree.
2018-07-16 19:03:03 +02:00
Nicolas Noé
35c0809158
bpo-33911: Fixed deprecation warning in xmlrpc.server (GH-7847)
...
Replace deprecated inspect.getfullargspec() with inspect.signature().
2018-07-16 10:46:04 +02:00
Serhiy Storchaka
bd47384e07
bpo-24618: Add a check in the code constructor. (GH-8283)
...
Check that the size of the varnames tuple is enough at least for all arguments.
2018-07-16 09:10:19 +03:00
Benjamin Peterson
15c7b2abdf
bpo-34121: Fix detection of C11 atomic support on clang. (GH-8288)
2018-07-15 17:01:42 -07:00
INADA Naoki
16dfca4d82
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)
...
`_PyUnicode_TransformDecimalAndSpaceToASCII()` missed trailing NUL char.
It caused buffer overflow in `_Py_string_to_number_with_underscores()`.
This bug is introduced in 9b6c60cb
.
2018-07-14 12:06:43 +09:00
Jason R. Coombs
cafaf0447b
bpo-34108: Fix double carriage return in 2to3 on Windows ( #8271 )
...
* Add test capturing failure.
* Honor newlines as present in the original file.
2018-07-13 11:26:03 -04:00
Andrés Delfino
379e9d639a
bpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924)
2018-07-13 15:50:20 +03:00
Victor Stinner
d6345def68
bpo-33723: Fix test_time.test_thread_time() (GH-8267)
...
The test failed on AMD64 Debian root 3.x buildbot because the busy
loop of 100 ms only increased time.thread_time() by 19.9 ms which is
smaller than 20 ms. Modify the test to tolerate a delta of at least
15 ms instead of 20 ms.
2018-07-12 15:25:22 +02:00
Zackery Spytz
9e9b2c32a3
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)
...
It was added in test_functools at 445f1b3
.
2018-07-12 12:57:05 +09:00
Serhiy Storchaka
993030aac5
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
2018-07-11 23:17:53 +02:00
Zachary Ware
b12112b5ba
Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
2018-07-11 14:09:58 -05:00
Serhiy Storchaka
504373c59b
bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)
2018-07-11 17:41:43 +03:00
Eitan Adler
b91a3a0d61
bpo-33648: Remove PY_WARN_ON_C_LOCALE (GH-7114)
...
This code does not appear to be used anywhere in the python code base.
The use was removed in eb81795d7d
.
2018-07-11 20:01:27 +09:00
Victor Stinner
31b50b8cbf
bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245)
...
Change test_logging.SMTPHandlerTest timeout from 8 seconds to 1
minute. The test failed randomly on the slow x86 Gentoo Refleaks 3.7
buildbot.
2018-07-11 12:35:38 +02:00
Derek B. Kim
c40278ef95
Simplify __all__ in multiprocessing (GH-6856)
2018-07-11 19:22:28 +09:00
Stig Johan Berggren
5e5bbbec46
bpo-34083: Update dict order in Functional HOWTO (GH-8230)
2018-07-11 18:53:07 +09:00
Andrés Delfino
33aefad342
Doc: Point to Simple statements section instead of PEP (GH-8238)
2018-07-11 18:44:06 +09:00
Chih-Hsuan Yen
09b2bece78
bpo-29442: Replace optparse with argparse in setup.py (GH-139)
2018-07-11 17:48:43 +09:00
INADA Naoki
d5c875bbf1
bpo-33597: Add What's New for PyGC_Head (GH-8236)
2018-07-11 17:42:49 +09:00
Tom Faulkner
da5e9476bb
Dataclasses: Fix example on 30.6.8, add method should receive a list rather than an integer. (GH-8038)
...
Change example function to append rather than add lists.
2018-07-10 22:39:57 -04:00
Lysandros Nikolaou
9cffdbffc3
Fix documentation for input and output tutorial (GH-8231)
...
The ValueError message ends with a period.
2018-07-10 17:11:34 -07:00
Nick Coghlan
5fe7c98a54
bpo-34009: Expand on platform support changes (GH-8022)
...
Many users won't realise the implications the OpenSSL 1.0.2
minimum version requirement has when it comes to Ubuntu
14.04 and Debian 8, so expand on that in the platform support
section.
Also explicitly note the non-ASCII-based locale requirement for
full Unicode text handling support on non-Windows systems.
2018-07-10 23:04:29 +10:00
Raymond Hettinger
66953f0ec6
Factor-out two substantially identical code blocks. (GH-8219)
2018-07-10 04:17:40 -07:00
Bradley Laney
6b490b5db4
bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)
...
Contributed by Bradley Laney.
2018-07-10 12:46:44 +03:00
INADA Naoki
5ac9e6eee5
bpo-33597: Reduce PyGC_Head size (GH-7043)
2018-07-10 17:19:53 +09:00
Dong-hee Na
445f1b35ce
bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)
2018-07-10 16:26:36 +09:00
Benjamin Peterson
7762e4d387
prefix internal sqlite symbols with _pysqlite_ (GH-8215)
2018-07-09 21:20:23 -07:00
Benjamin Peterson
d6d4432724
delete some unused pysqlite forward declarations (GH-8211)
2018-07-09 20:41:26 -07:00
Mariatta
3ed919290e
Move Code_of_Conduct.rst to the root level. (GH-8209)
...
Follow up from https://github.com/python/peps/pull/712#issuecomment-403591108 :
"people using the repo without using GitHub still ought to be reminded of the COC" - GvR
2018-07-09 14:29:57 -07:00
Berker Peksag
2708578736
bpo-11572: Make minor improvements to copy module (GH-8208)
...
* When doing getattr lookups with a default of "None", it now
uses an "is" comparison against None which is more correct
* Removed outdated code
Patch by Brandon Rhodes.
2018-07-09 23:14:54 +03:00
Berker Peksag
9863de0355
bpo-24459: Document missing env variables in python.man (GH-4142)
...
Initial patch by Joshua Jay Herman.
2018-07-09 22:17:54 +03:00
Serhiy Storchaka
f60bf0e168
bpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194)
2018-07-09 21:46:51 +03:00
Sergey Fedoseev
b796e7dcdc
Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)
...
Fixed also testing the "always" warning filter.
2018-07-09 18:25:55 +03:00
Daniel Porteous
c287545d62
bpo-34067: Include a more easily understood example for nullcontext (GH-8158)
...
Include a more easily understood example for nullcontext
2018-07-09 23:49:29 +10:00
Serhiy Storchaka
3f4d90d4d7
bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159)
...
This will prevent emitting a resource warning when the execution was
interrupted by Ctrl-C between calling open() and entering a 'with' block
in "with open()".
2018-07-09 22:40:14 +10:00
Serhiy Storchaka
cf7303ed2a
bpo-33305: Improve SyntaxError for invalid numerical literals. (GH-6517)
2018-07-09 15:09:35 +03:00
Serhiy Storchaka
2a9b8babf0
bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684)
2018-07-09 11:47:45 +03:00
Andrés Delfino
f85af035c5
Fix margin in sentinel and mock_open (GH-8188)
2018-07-08 17:28:51 -07:00
Marcin Niemira
bc9aa813a3
bpo-34061: Document sqlite3.NotSupportedError (GH-8172)
2018-07-08 15:02:58 +03:00
Serhiy Storchaka
25b804a9c2
bpo-31014: Fix the webbrowser module. (GH-7267)
...
webbrowser._synthesize() called webbrowser.register() with
outdated signature.
Co-Authored-By: John Still <john@jmsdvl.com>
2018-07-08 10:22:32 +03:00
Sergey Fedoseev
0830858aee
bpo-34041: Allow creating deterministic functions in Connection.create_function() (GH-8086)
2018-07-08 10:09:20 +03:00