summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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".
* Fix typo in Memory Management doc. (GH-10798)Kevin Adler2018-11-301-1/+1
|
* bpo-35356: Fix a possible reference leak in nis.maps(). (GH-10808)Zackery Spytz2018-11-301-0/+1
|
* bpo-34279, regrtest: Issue a warning if no tests have been executed (GH-10150)Pablo Galindo2018-11-295-7/+107
|
* Use assertEqual to fix DeprecationWarning. (GH-10794)Xtreak2018-11-291-1/+1
|
* bpo-30167: Remove __cached__ from __main__ when removing __file__ (GH-7415)INADA Naoki2018-11-292-2/+10
|
* bpo-16086: Fix PyType_GetFlags() documentation (GH-10758)Eddie Elizondo2018-11-291-1/+4
| | | PyType_GetFlags() return type is unsigned long, not long.
* bpo-35345: Remove platform.popen() (GH-10781)Victor Stinner2018-11-295-58/+12
| | | | | | | Remove platform.popen() function, it was deprecated since Python 3.3: use os.popen() instead. Rename also the "Removed" section to "API and Feature Removals" of What's New in Python 3.8.
* bpo-28167: Remove platform._dist_try_harder() (GH-10787)Victor Stinner2018-11-291-48/+0
| | | | | platform._dist_try_harder() was an helper function for platform.linux_distribution() which has been removed by the commit 8b94b41ab7b12f745dea744e8940631318816935.
* bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)Victor Stinner2018-11-291-2/+0
| | | test_eintr no longer fails if the signal handler has not been called.
* bpo-33723: Remove busy loop from test_time (GH-10773)Victor Stinner2018-11-281-47/+0
| | | | The "busy loops" of test_process_time() and test_thread_time() are not reliable and fail randomly on Windows: remove them.
* bpo-34100: compile: Re-enable frozenset merging (GH-10760)INADA Naoki2018-11-282-2/+65
| | | This reverts commit 1005c84535191a72ebb7587d8c5636a065b7ed79.
* bpo-35337: Fix gettmarg(): use PyStructSequence_GET_ITEM() (GH-10765)Victor Stinner2018-11-281-2/+2
| | | | PyStructSequence_GET_ITEM() must be used instead of PyTuple_GET_ITEM() on a StructTimeType.
* bpo-35134: Create Include/cpython/tupleobject.h (GH-10764)Victor Stinner2018-11-285-33/+81
| | | | | | | Move tupleobject.h code surrounded by "#ifndef Py_LIMITED_API" to a new Include/cpython/tupleobject.h header file. Add cpython/ header files to Makefile.pre.in and pythoncore project of PCbuild.
* bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759)Victor Stinner2018-11-283-9/+19
| | | | | | | | | Fix memory leak in PyUnicode_EncodeLocale() and PyUnicode_EncodeFSDefault() on error handling. Changes: * Fix unicode_encode_locale() error handling * Fix test_codecs.LocaleCodecTest
* bpo-35240: Add "doctest" job to Travis CI (GH-10753)Victor Stinner2018-11-281-4/+16
| | | Create a new "doctest" job in Travis CI to run "make doctest".
* bpo-33676: Fix dangling thread in _test_multiprocessing (GH-10755)Victor Stinner2018-11-281-0/+2
| | | | | | | Fix WithThreadsTestPool.test_wrapped_exception() of test_multiprocessing_fork: join the pool. WithThreadsTestPool.test_del_pool() is now also decorated with @support.reap_threads.
* bpo-35134: Don't define types twice in header files (GH-10754)Victor Stinner2018-11-272-29/+36
| | | | | | Fix the following clang warning: Include/cpython/pystate.h:217:3: warning: redefinition of typedef 'PyThreadState' is a C11 feature [-Wtypedef-redefinition]
* bpo-33012: Fix more invalid function cast warnings with gcc 8. (GH-10751)Serhiy Storchaka2018-11-272-3/+3
| | | Fix warnings with gcc 8 for wrapperfunc <-> wrapperfunc_kwds casts.
* bpo-35312: Make lib2to3.pgen2.parse.ParseError round-trip pickle-able. ↵Anthony Sottile2018-11-273-0/+16
| | | | (GH-10710)
* bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Serhiy Storchaka2018-11-2725-122/+128
| | | Fix also return type for few other functions (clear, releasebuffer).
* bpo-34100: Partially revert merge_consts_recursive() (GH-10743)Victor Stinner2018-11-272-60/+0
| | | | | Partically revert commit c2e1607a51d7a17f143b5a34e8cff7c6fc58a091 to fix a reference leak.
* bpo-35134: Update "make tags": add Include/cpython/ (GH-10739)Victor Stinner2018-11-271-2/+2
| | | | "make tags" and "make TAGS" now also parse Include/cpython/ header files.
* bpo-33954: Fix compiler warning in _PyUnicode_FastFill() (GH-10737)Victor Stinner2018-11-271-1/+4
| | | | | | | 'data' argument of unicode_fill() is modified, so it must not be constant. Add more assertions to unicode_fill(): check the maximum character value.