summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28180: Standard stream & FS encoding differ on Mac OS X (GH-2208)Nick Coghlan2017-06-151-21/+37
| | | | | | | | | In the C locale on Mac OS X, the default filesystem encoding used for operating system interfaces is UTF-8, but the default encoding used on the standard streams is still ASCII. Setting the POSIX locale also behaves differently from setting other locales on Mac OS X, so skip that in the test suite for now.
* bpo-30284: Fix regrtest for out of tree build (#1481)Victor Stinner2017-06-141-1/+7
| | | | | | | | Use a build/ directory in the build directory, not in the source directory, since the source directory may be read-only and must not be modified. Fallback on the source directory if the build directory is not available (missing "abs_builddir" sysconfig variable).
* bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when ↵Milan Oberkirch2017-06-143-4/+15
| | | | | parent isn't a package (GH-1899) Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.
* bpo-15786: Fix IDLE autocomplete return problem. (#2198)terryjreedy2017-06-141-1/+2
| | | Before, <return> would not, for instance, complete 're.c' to 're.compile' even with 'compile' highlighted. Now it does. Before, <return> was inserted into text, which in Shell meant compile() and possibly execute. Now cursor is left after completion.
* bpo-30231: Remove skipped test_imaplib tests (#1419)Victor Stinner2017-06-141-20/+10
| | | | | | | | The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept TLS connection using our self-signed x509 certificate. Remove the two tests which are already skipped. Write a new test_certfile_arg_warn() unit test for the certfile deprecation warning.
* bpo-15786: IDLE: Fix mouse clicks on autocompletetion window (#1811)mlouielu2017-06-141-8/+50
| | | | | | | | | | | | | | | | | | | The root problem was non-check for hide_event. When user clicks on autocomplete window (acw), root widget gets focusOut event, then triggers hide_window to close the acw. It should only be hide when acw is active, and acw didn't get focus at FocusOut event (this event bind on acw and widget), or when widget get a ButtonPress event (this event only bind on widget). MacOS froze after double click on acw because when doubleclick_event try to hide window at the end, hide_window function destory whole acw, but tkinter didn't get focus back to widget. So set focus on widget first, then destory acw. Windows could not respond on double click event, because of the misbehavior of Configure event. When acw was shown, tkinter called winconfig event multiple times. That caused tkinter to not response to double click event. When on Windows, unbind Configure event first time get into winconfig_event to prevent multiple call of this event.
* bpo-30649: Revert utime delta in test_os (#2176)Victor Stinner2017-06-141-1/+3
| | | | | | PPC64 Fedora 3.x buildbot requires at least a delta of 14 ms: revert the utime delta to 20 ms. I tried 10 ms, but test_os failed on the PPC64 Fedora 3.x buildbot.
* bpo-25514: Improve IDLE's connection refused message (#2177)terryjreedy2017-06-143-35/+75
| | | When IDLE fail to start because the socket connection fails, direct people to a new subsection of the IDLE doc listing various causes and remedies.
* bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (#2148)Victor Stinner2017-06-131-1/+2
| | | | | _test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a timeout of 1 second on Queue.get(), instead of 0.1 second, for slow buildbots.
* bpo-30649: test_os tolerates 50 ms delta for utime (#2156)Victor Stinner2017-06-131-2/+5
| | | | | | On Windows, tolerate a delta of 50 ms instead of 20 ms in test_utime_current() and test_utime_current_old() of test_os. On other platforms, reduce the delta from 20 ms to 10 ms.
* bpo-30603: Add test case to textwrap.dedent (GH-2014)Jonathan Eunice2017-06-131-0/+5
|
* bpo-27922: Stop gui flash from idle_test.test_parenmatch (#2171)terryjreedy2017-06-131-0/+1
| | | For unknown reasons, this does not work when running leak tests.
* bpo-24744: Raises error in pkgutil.walk_packages if path is str (#1926)Sanyam Khurana2017-06-132-0/+12
| | | | | | | | bpo-24744: Raise error in pkgutil.walk_packages if path is str Previously an empty result list was accidentallly returned, since the code iterated over the string as if it were the expected list of paths, and of course found nothing.
* bpo-24484: Avoid race condition in multiprocessing cleanup (#2159)Antoine Pitrou2017-06-132-13/+84
| | | | | | | | | | | * bpo-24484: Avoid race condition in multiprocessing cleanup The finalizer registry can be mutated while inspected by multiprocessing at process exit. * Use test.support.start_threads() * Add Misc/NEWS
* Fix ref leak in idle_test.test_macosx (#2163)terryjreedy2017-06-131-0/+4
|
* bpo-28180: assume UTF-8 for Mac OS X PEP 538 tests (GH-2130)Nick Coghlan2017-06-131-5/+24
|
* bpo-30642: IDLE: Fix test_query refleak (#2147)mlouielu2017-06-131-0/+1
| | | Patch by Louie Lu.
* bpo-30635: Fix refleak in test_c_locale_coercion (#2126)Victor Stinner2017-06-131-21/+25
| | | | | | | | | When checking for reference leaks, test_c_locale_coercion is run multiple times and so _LocaleCoercionTargetsTestCase.setUpClass() is called multiple times. setUpClass() appends new value at each call, so it looks like a reference leak. Moving the setup from setUpClass() to setUpModule() avoids this, eliminating the false alarm.
* bpo-28180: Fix test_capi.test_forced_io_encoding() (#2155)Victor Stinner2017-06-131-1/+1
| | | | | Don't run Python in an empty environment, but copy the current environment and set PYTHONIOENCODING. So the test works also on Python compiled in shared mode (using libpython).
* bpo-30643: Fix race condition in signal wakeup in forkserver (followup to PR ↵Antoine Pitrou2017-06-131-4/+8
| | | | | | | | | | | | | #1989) (#2139) * Fix race condition in signal wakeup in forkserver (followup to PR #1989) There's an admittedly well-known race condition where ECHILD can arrive just before the C function epoll_wait() and the latter wouldn't therefore return EINTR. The solution is to use set_wakeup_fd(), which was designed to avoid such race conditions. * Reset wakeup fd in child
* Fix bpo-30589: improve Process.exitcode with forkserver (#1989)Antoine Pitrou2017-06-124-49/+134
| | | | | | | | * Fix bpo-30589: improve Process.exitcode with forkserver When the child is killed, Process.exitcode should return -signum, not 255. * Add Misc/NEWS
* bpo-30624 remaining bare except (#2108)Giampaolo Rodola2017-06-121-1/+1
| | | | bpo-30624 / selectors: use bare 'except' clause instead of 'except Exception'
* [email] bpo-29478: Fix passing max_line_length=None from Compat32 policy ↵mircea-cosbuc2017-06-122-2/+13
| | | | | | (GH-595) If max_line_length=None is specified while using the Compat32 policy, it is no longer ignored.
* bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (#2034)Serhiy Storchaka2017-06-121-0/+10
| | | The traceback no longer displayed for SystemExit raised in a callback registered by atexit.
* Revert "bpo-29406: asyncio SSL contexts leak sockets after calling close ↵Yury Selivanov2017-06-112-58/+1
| | | | | with certain servers (#409)" (#2111) This reverts commit a608d2d5a7f1aabe9bcbfc220135c5e126189390.
* bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050)Yury Selivanov2017-06-114-0/+29
|
* bpo-11822: Improve disassembly to show embedded code objects. (#1844)Serhiy Storchaka2017-06-112-13/+99
| | | The depth argument limits recursion.
* Show what's changed when Travis fails regen check (GH-2095)Zachary Ware2017-06-112-5/+5
| | | Also fixed a few more line endings that were missed in GH-840, which were causing failure.
* bpo-28180: Implementation for PEP 538 (#659)Nick Coghlan2017-06-116-48/+315
| | | | | | | | | | - new PYTHONCOERCECLOCALE config setting - coerces legacy C locale to C.UTF-8, C.utf8 or UTF-8 by default - always uses C.UTF-8 on Android - uses `surrogateescape` on stdin and stdout in the coercion target locales - configure option to disable locale coercion at build time - configure option to disable C locale warning at build time
* Update idlelib NEWS for 3.7 (#2089)terryjreedy2017-06-111-3/+21
|
* #30624 / selectors: use bare except clause in order to not leave the fd in a ↵Giampaolo Rodola2017-06-101-2/+2
| | | | bad state in case of error (#2082)
* bpo-27425: Be more explicit in .gitattributes (GH-840)Zachary Ware2017-06-103-104/+104
| | | Updates checked-in line endings on several files.
* bpo-28556: Updates to typing module (#2076)Ivan Levkivskyi2017-06-102-5/+95
| | | | | | | This PR contains two updates to typing module: - Support ContextManager on all versions (original PR by Jelle Zijlstra). - Add generic AsyncContextManager.
* bpo-30599: Fix test_threaded_import reference leak (#2029)Victor Stinner2017-06-101-2/+11
| | | | | Mock os.register_at_fork() when importing the random module, since this function doesn't allow to unregister callbacks and so leaked memory.
* bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027)Victor Stinner2017-06-101-1/+1
| | | | | | | multiprocessing.Queue.get() with a timeout now polls its reader in non-blocking mode if it succeeded to aquire the lock but the acquire took longer than the timeout. Co-Authored-By: Grzegorz Grzywacz <grzgrzgrz3@gmail.com>
* bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (#2016)Roy Williams2017-06-102-3/+15
| | | | Running our unit tests with `-bb` enabled triggered this failure.
* bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)Sylvain2017-06-101-0/+12
| | | | | | | | The function '_PyArg_ParseStack()' and '_PyArg_UnpackStack' were failing (with error "XXX() takes Y argument (Z given)") before the function '_PyArg_NoStackKeywords()' was called. Thus, the latter did not raise its more meaningful error : "XXX() takes no keyword arguments".
* bpo-29406: asyncio SSL contexts leak sockets after calling close with ↵Nikolay Kim2017-06-102-1/+58
| | | | | | | | certain servers (#409) * asyncio SSL contexts leak sockets after calling close with certain servers * cleanup _shutdown_timeout_handle on _fatal_error
* Fix TypeError is asyncio/proactor_events (#993)Jim Fasarakis-Hilliard2017-06-101-2/+3
|
* Break circular references when closing SSLTransport objects (#981)Michaël Sghaïer2017-06-091-4/+6
|
* Closing transport during handshake process leaks socket (#480)Nikolay Kim2017-06-092-2/+20
|
* bpo-30014: make poll-like selector's modify() method faster (#1030)Giampaolo Rodola2017-06-092-1/+56
| | | | | | | | | | | | | | | | * #30014: make selectors.DefaultSelector.modify() faster by relying on selector's modify() method instead of un/register()ing the fd * #30014: add unit test * speedup poll/epoll/devpoll modify() method by using internal modify() call * update doc * address PR comments * update NEWS entries * use != instead of 'is not'
* Fix waiter cancellation in asyncio.Lock (#1031)Mathieu Sornay2017-06-092-5/+34
| | | | | | Avoid a deadlock when the waiter who is about to take the lock is cancelled Issue #27585
* Fix regression in error message introduced in bpo-29951. (#2028)Serhiy Storchaka2017-06-091-0/+4
| | | | | | | | * Fix regression in error message introduced in bpo-29951. * Add test. * Make the test more strong.
* bpo-30266: support "= None" pattern in AbstractContextManager (#1448)Jelle Zijlstra2017-06-092-3/+12
| | | | | contextlib.AbstractContextManager now supports anti-registration by setting __enter__ = None or __exit__ = None, following the pattern introduced in bpo-25958.
* bpo-30524: Write unit tests for FASTCALL (#2022)Victor Stinner2017-06-091-0/+175
| | | | | | | Test C functions: * _PyObject_FastCall() * _PyObject_FastCallDict() * _PyObject_FastCallKeywords()
* Add a test for bad IDNA in ssl server_hostname (#1997)Nathaniel J. Smith2017-06-091-0/+10
| | | | See discussion: https://github.com/python/cpython/pull/1992#issuecomment-307024778
* bpo-30540: regrtest: add --matchfile option (#1909)Victor Stinner2017-06-093-6/+89
| | | | | | | | | | | | | | | * Add a new option taking a filename to get a list of test names to filter tests. * support.match_tests becomes a list. * Modify run_unittest() to accept to match the whole test identifier, not just a part of a test identifier. For example, the following command only runs test_default_timeout() of the BarrierTests class of test_threading: $ ./python -m test -v test_threading -m test.test_threading.BarrierTests.test_default_timeout Remove also some empty lines from test_regrtest.py to make flake8 tool happy.
* bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. ↵Serhiy Storchaka2017-06-081-0/+10
| | | | | | | | (#1888) 'invalid character in identifier' now is raised instead of 'f-string: empty expression not allowed' if a subexpression contains only whitespaces and they are not accepted by Python parser.
* bpo-30418: Popen.communicate() always ignore EINVAL (#2002)Victor Stinner2017-06-081-6/+8
| | | | | On Windows, subprocess.Popen.communicate() now also ignore EINVAL on stdin.write() if the child process is still running but closed the pipe.