summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii ↵Serhiy Storchaka2018-12-062-4/+23
| | | | character. (GH-10863)
* Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted ↵Victor Stinner2018-12-063-58/+24
| | | | | (GH-8450)" (GH-10971) This reverts commit 97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0.
* bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. ↵native-api2018-12-061-1/+5
| | | | (GH-7278)
* bpo-34162: Update idlelib NEWS to 2018-12-05. (GH-10964)Terry Jan Reedy2018-12-061-0/+32
|
* bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)Victor Stinner2018-12-051-1/+15
| | | | | Moreover, "python3 -m test test_eintr -v" now avoids redirecting stdout/stderr to a pipe, the child process inherits stdout/stderr from the parent.
* bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)Victor Stinner2018-12-051-0/+4
|
* Fix typo in xml.dom.minidom documentation (GH-10956)E Kawashima2018-12-051-1/+1
| | | | Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814.
* bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)Victor Stinner2018-12-054-0/+49
| | | | | On macOS, platform.platform() now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than darwin version.
* Fix typos in concurrent.Futures documentation (GH-10920)Matt Wheeler2018-12-051-2/+2
| | | | Add a missing word `as` in `as well as an`. Linkify `threading.Thread`.
* bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)Oran Avraham2018-12-052-0/+8
| | | | | | select() calls are retried on EINTR (per PEP 475). However, if a timeout was provided and the deadline has passed after running the signal handlers, rlist, wlist and xlist should be cleared since select(2) left them unmodified.
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Serhiy Storchaka2018-12-055-10/+27
|
* Correct a couple of unbalanced parenthesis. (GH-10779)Andre Delfino2018-12-0511-15/+15
|
* Move __missing__ after __delitem__ in Data model. (GH-10923)Andre Delfino2018-12-051-8/+8
|
* bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)Alex H2018-12-051-8/+8
| | | | | | When running test_bdb.py as a script, `import test_module` would be importing the existing Lib/test/test_modules.py instead of the tempcwd/test_module.py module which was dynamically created by test_bdb.py itself.
* bpo-34604: Use %R because of invisible characters or trailing whitespaces. ↵William Grzybowski2018-12-053-3/+4
| | | | (GH-9165)
* bpo-34987: Fix a possible null pointer dereference in _pickle.c's ↵Zackery Spytz2018-12-051-1/+4
| | | | save_reduce(). (GH-9886)
* bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Sergey Fedoseev2018-12-053-37/+84
| | | | (GH-8113)
* bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)Victor Stinner2018-12-054-30/+99
| | | | | | | * posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and pwd.getpwuid() raises KeyError (the current user identifier doesn't exist in the password database). * Add test_no_home_directory() to test_site.
* bpo-32787: Better error handling in ctypes. (#3727)Serhiy Storchaka2018-12-055-112/+247
| | | | | | | | | | | | * bpo-31572: Get rid of PyObject_HasAttrString() in ctypes. * Fix error handling for _pack_. * Don't silence errors when look up in a dict. * Use _PyObject_LookupAttrId(). * More changes.
* bpo-35389: platform.libc_ver() uses os.confstr() (GH-10891)Victor Stinner2018-12-053-7/+51
| | | | | | | | | | platform.libc_ver() now uses os.confstr('CS_GNU_LIBC_VERSION') if available and the *executable* parameter is not set. The default value of the libc_ver() *executable* parameter becomes None. Quick benchmark on Fedora 29: python3 -m perf command ./python -S -c 'import platform; platform.libc_ver()' 94.9 ms +- 4.3 ms -> 33.2 ms +- 1.4 ms: 2.86x faster (-65%)
* bpo-35414: Add a missing Py_INCREF(Py_None) in PyState_RemoveModule(). ↵Zackery Spytz2018-12-051-0/+1
| | | | (GH-10914)
* bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)Victor Stinner2018-12-052-0/+13
| | | | | | On Travis CI, FTP tests of test_urllib2net randomly fail with "425 Security: Bad IP connecting". test.pythoninfo now also logs TRAVIS environment variable.
* Remove unnecessary and over-restrictive type check (GH-10905)Raymond Hettinger2018-12-041-2/+0
|
* bpo-35346, platform: import subprocess in _syscmd_file() (GH-10892)Victor Stinner2018-12-041-5/+7
| | | | | | | Only platform._syscmd_file() uses subprocess. Move subprocess import inside this function to reduce the number of imports at Python startup. Remove also warnings import which is no longer needed.
* bpo-35363, test_eintr: skip test_open() on macOS (GH-10896)Victor Stinner2018-12-041-2/+4
|
* bpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)stratakis2018-12-043-2/+4
| | | | | | When using link time optimizations, the -flto flag is passed to BASECFLAGS, which makes it propagate to distutils. Those flags should be reserved for the interpreter and the stdlib extension modules only, thus moving those flags to CFLAGS_NODIST.
* bpo-35357: Add _mock_ prefix to name/parent/from_kall attributes of ↵Andrew Dunai2018-12-044-16/+34
| | | | | _Call/_MagicProxy. (#10873) Fix minor typo in test function name.
* bpo-35365: Use a wchar_t* buffer in the code page decoder. (GH-10837)Serhiy Storchaka2018-12-041-60/+52
|
* Add comments regarding speed/space/entropy trade-offs (GH-10885)Raymond Hettinger2018-12-041-0/+13
|
* bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)Naglis2018-12-041-2/+2
| | | | | | Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature. https://bugs.python.org/issue35395
* bpo-35226: Fix equality for nested unittest.mock.call objects. (#10555)Chris Withers2018-12-036-23/+124
| | | | Also refactor the call recording imolementation and add some notes about its limitations.
* bpo-35380: Enable TCP_NODELAY for proactor event loop (#10867)Andrew Svetlov2018-12-036-42/+45
|
* bpo-35373: Fix PyInit_time() error handling (GH-10865)Victor Stinner2018-12-031-4/+7
| | | | | | | * PyInit_time() now returns NULL if an exception is raised. * Rename PyInit_timezone() to init_timezone(). "PyInit_" prefix is a special prefix for function initializing a module. init_timezone() doesn't initialize a module and the function is not exported.
* bpo-35373: Fix PyInit_timezone() if HAVE_DECL_TZNAME is defined (GH-10861)Victor Stinner2018-12-031-4/+5
| | | If HAVE_DECL_TZNAME, PyInit_timezone() now returns -1 on error.
* bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848)Serhiy Storchaka2018-12-033-5/+24
|
* bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' ↵Zackery Spytz2018-12-031-1/+1
| | | | | PyCArg_repr(). (GH-10853) Use "ll" instead of the nonstandard "q".
* bpo-32153: Add unit test for create_autospec with partial function returned ↵Xtreak2018-12-031-0/+14
| | | | | | | | | | in getattr (#10398) * Add create_autospec with partial function returned in getattr * Use self.assertFalse instead of assert * Use different names and remove object
* bpo-35341: Add generic version of OrderedDict to typing (GH-10850)Ismo Toijala2018-12-024-0/+24
|
* bpo-35371: Fix possible crash in os.utime() on Windows. (GH-10844)Serhiy Storchaka2018-12-013-22/+40
|
* bpo-31177: Skip deleted attributes while calling reset_mock (GH-9302)Xtreak2018-12-013-1/+13
|
* Fix compiler warning in structseq_repr() (GH-10841)Victor Stinner2018-12-011-3/+3
| | | | | | | | | | | | Replace strncpy() with memcpy() in structseq_repr() to fix the following compiler warning: Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(pbuf, typ->tp_name, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Objects/structseq.c:185:11: note: length computed here len = strlen(typ->tp_name) > TYPE_MAXSIZE ? TYPE_MAXSIZE : The function writes the terminating NUL byte later.
* get_gmtoff() now returns time_t (GH-10838)Victor Stinner2018-11-301-11/+36
| | | | | | | get_gmtoff() now returns time_t instead of int to fix the following Visual Studio warning: Modules\timemodule.c(1183): warning C4244: 'return': conversion from 'time_t' to 'int', possible loss of data
* bpo-35352: Cleanup test_asyncio/utils.py (GH-10831)Victor Stinner2018-11-301-7/+1
| | | 'here' variable is no longer needed.
* bpo-35352: test_asyncio uses the certificate set from the test directory ↵stratakis2018-11-306-185/+4
| | | | | | | (GH-10826) Modify asyncio tests to utilize the certificates from the test directory instead of its own set, as they are the same and with each update they had to be updated as well.
* bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008)Siddhesh Poyarekar2018-11-302-4/+39
| | | | | | | Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h.
* Fix compiler warning in call_readline() (GH-10820)Victor Stinner2018-11-301-3/+3
| | | | | | | | | | | | | | Replace strncpy() with memcpy() in call_readline() to fix the following warning, the NUL byte is written manually just after: Modules/readline.c: In function ‘call_readline’: Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(p, q, n); ^~~~~~~~~~~~~~~~ Modules/readline.c:1279:9: note: length computed here n = strlen(p); ^~~~~~~~~
* Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814)E Kawashima2018-11-301-1/+1
|
* bpo-35347: Cleanup test_socket.NonBlockingTCPTests (GH-10818)Victor Stinner2018-11-301-89/+74
| | | | | | | | | | | | | | | | * Replace testInheritFlags() with two tests: testInheritFlagsBlocking() and testInheritFlagsTimeout() to test different default socket timeout. Moreover, the test now checks sock.gettimeout() rather than a functional test on recv(). * Replace time.time() with time.monotonic() * Add socket_setdefaulttimeout() context manager to restore the default timeout when the test completes. * Remove testConnect(): accept() wasn't blocking and testAccept() already tests non-blocking accept(). * Remove accept() functional test from testInitNonBlocking(): already tested by testAccept() * Rewrite testSetBlocking() with a new assert_sock_timeout() method * Use addCleanup() and context manager to close sockets * Replace assertTrue(x < y) with assertLess(x, y)
* bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791)Victor Stinner2018-11-301-25/+39
| | | | | | | | | | | | | | | testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a race condition: time.sleep() is used as a weak synchronization primitive and the tests fail randomly on slow buildbots. Use a reliable threading.Event to fix these tests. Other changes: * Replace send() with sendall() * Expect specific BlockingIOError rather than generic OSError * Add a timeout to select() in testAccept() and testRecv() * Use addCleanup() to close sockets * Use assertRaises()
* bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806)Victor Stinner2018-11-303-4/+36
| | | | Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C locale if the LC_CTYPE locale is "C".