summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-30779: News (#2627)terryjreedy2017-07-081-0/+8
|
* bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put in ↵terryjreedy2017-07-074-171/+277
| | | | | | | | | | | | config; test. (#2612) * In config, put dump test code in a function; run it and unittest in 'if __name__ == '__main__'. * Add class config.ConfigChanges based on changes_class_v4.py on bpo issue. * Add class test_config.ChangesTest, partly based on configdialog_tests_v1.py on bpo issue. * Revise configdialog to use ConfigChanges, mostly as specified in tracker msg297804. * Revise test_configdialog to match configdialog changes. All tests pass in both files. * Remove configdialog functions unused or moved to ConfigChanges. Cheryl Sabella contributed parts of the patch.
* bpo-29854: test_readline logs versions (#2619)Victor Stinner2017-07-072-2/+19
| | | | | * test_readline logs the versions of libreadline when run in verbose mode * Add also readline._READLINE_LIBRARY_VERSION
* bpo-29854: Fix segfault in call_readline() (GH-728)Nir Soffer2017-07-073-7/+48
| | | | | | | | | | | | | If history-length is set in .inputrc, and the history file is double the history size (or more), history_get(N) returns NULL, and python segfaults. Fix that by checking for NULL return value. It seems that the root cause is incorrect handling of bigger history in readline, but Python should not segfault even if readline returns unexpected value. This issue affects only GNU readline. When using libedit emulation system history size option does not work.
* bpo-30780: Fix error in idlelib.test_idle.test_configdialog (#2606)terryjreedy2017-07-071-1/+1
|
* Make test_shutil test_disk_usage not depend on the cwd fs (#2597)Gregory P. Smith2017-07-071-1/+1
| | | Make test_shutil test_disk_usage not depend on the current working directory's filesystem.
* Fix case in .gitignore (GH-2607)Segev Finer2017-07-061-1/+1
|
* bpo-26506: hex() documentation: mention %x % int (GH-2525)Manvisha Kodali2017-07-061-10/+52
|
* bpo-30862: Updated Logger.setLevel documentation. (GH-2604)Vinay Sajip2017-07-061-4/+8
|
* bpo-30814: Fixed a race condition when import a submodule from a package. ↵Serhiy Storchaka2017-07-067-337/+352
| | | | (#2580)
* Update idlelib/NEWS.txt with merges upto 2017 Jul 5. (#2595)terryjreedy2017-07-051-1/+41
|
* bpo-30828: Fix out of bounds write in ↵Yury Selivanov2017-07-053-4/+34
| | | | `asyncio.CFuture.remove_done_callback() (#2569)
* Revert "bpo-30822: Fix testing of datetime module." (#2588)Victor Stinner2017-07-054-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "bpo-30854: Fix compile error when --without-threads (#2581)" This reverts commit 0c3116309307ad2c7f8e2d2096612f4ab33cbb62. * Revert "NEWS for 30777 (#2576)" This reverts commit aaa917ff38f9869eeebe3bc9469bfee64089d826. * Revert "bpo-21624: IDLE -- minor htest fixes (#2575)" This reverts commit 2000150c569941584994ec4ec59171961209bec3. * Revert "bpo-30777: IDLE: configdialog - add docstrings and improve comments (#2440)" This reverts commit 7eb5883ac59833bf63f0e1f7fb95671a1ac1ee08. * Revert "bpo-30319: socket.close() now ignores ECONNRESET (#2565)" This reverts commit 67e1478dba6efe60b8e1890192014b8b06dd6bd9. * Revert "bpo-30789: Use a single memory block for co_extra. (#2555)" This reverts commit 378ebb6578b9d709f38b888d23874c0b18125249. * Revert "bpo-30845: Enhance test_concurrent_futures cleanup (#2564)" This reverts commit 3df9dec425b0254df1cdf41922fd8d6b08bf47e4. * Revert "bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` (#2480)" This reverts commit 48350412b70c76fa51f488cfc736c80d59b5e8eb. * Revert "Remove outdated FOX from GUI FAQ (GH-2538)" This reverts commit d3ed2877a798d07df75422afe136b4727e500c99. * Revert "bpo-6691: Pyclbr now reports nested classes and functions. (#2503)" This reverts commit 246ff3bd00f97658e567a7087645a6b76e056491. * Revert "bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)" This reverts commit 6969eaf4682beb01bc95eeb14f5ce6c01312e297. * Revert "bpo-30832: Remove own implementation for thread-local storage (#2537)" This reverts commit aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c. * Revert "bpo-30764: Fix regrtest --fail-env-changed --forever (#2536)" This reverts commit 5e87592fd12e0b7c41edc11d4885ed7298d5063b. * Revert "bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (#2534)" This reverts commit 34b54873b51a1ebee2a3c57b7205537b4f33128d. * Revert "bpo-30822: Fix testing of datetime module. (#2530)" This reverts commit 98b6bc3bf72532b784a1c1fa76eaa6026a663e44.
* bpo-30854: Fix compile error when --without-threads (#2581)Masayuki Yamamoto2017-07-052-1/+3
| | | | | | * bpo-30854: Fix compile error when --without-threads * bpo-30854: fix news
* NEWS for 30777 (#2576)terryjreedy2017-07-051-0/+2
|
* bpo-21624: IDLE -- minor htest fixes (#2575)terryjreedy2017-07-052-1/+2
|
* bpo-30777: IDLE: configdialog - add docstrings and improve comments (#2440)csabella2017-07-051-128/+297
| | | Patch by Cheryl Sabella.
* bpo-30319: socket.close() now ignores ECONNRESET (#2565)Victor Stinner2017-07-042-1/+4
| | | | socket.close() was modified in Python 3.6 to raise OSError on failure: see bpo-26685.
* bpo-30789: Use a single memory block for co_extra. (#2555)Serhiy Storchaka2017-07-041-39/+15
| | | | | | * bpo-30789: Use a single memory block for co_extra. * Address review comments.
* bpo-30845: Enhance test_concurrent_futures cleanup (#2564)Victor Stinner2017-07-042-1/+9
| | | | | | | | | | | * bpo-30845: reap_children() now logs warnings * bpo-30845: Enhance test_concurrent_futures cleanup In setUp() and tearDown() methods of test_concurrent_futures tests, make sure that tests don't leak threads nor processes. Clear explicitly the reference to the executor to make it that it's destroyed (to prevent "dangling threads" warning).
* bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` (#2480)Antoine Pitrou2017-07-044-28/+71
| | | | | | * bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` * Add NEWS blurb
* Remove outdated FOX from GUI FAQ (GH-2538)Berker Peksag2017-07-041-9/+0
| | | | | | FXpy doesn't have a Python 3 port and it only supports Python 2.2 and older versions. Reported by Alex Walters on docs@p.o.
* bpo-6691: Pyclbr now reports nested classes and functions. (#2503)csabella2017-07-043-186/+338
| | | Original patch by Guilherme Polo. Revisions by Cheryl Sabella.
* bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)Serhiy Storchaka2017-07-0376-1916/+616
| | | | | the bare METH_FASTCALL be used for functions with positional-only parameters.
* bpo-30832: Remove own implementation for thread-local storage (#2537)Masayuki Yamamoto2017-07-034-220/+15
| | | | | | | | | | | | | | | | * bpo-30832: Remove own implementation for thread-local storage CPython has provided the own implementation for thread-local storage (TLS) on Python/thread.c, it's used in the case which a platform has not supplied native TLS. However, currently all supported platforms (NT and pthreads) have provided native TLS and defined the Py_HAVE_NATIVE_TLS macro with unconditional in any case. * bpo-30832: replace NT with Windows * bpo-30832: change to directive chain * bpo-30832: remove comemnt which making no sense
* bpo-30764: Fix regrtest --fail-env-changed --forever (#2536)Victor Stinner2017-07-031-1/+3
| | | --forever now stops if a fail changes the environment.
* bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (#2534)Serhiy Storchaka2017-07-021-0/+1
|
* bpo-30822: Fix testing of datetime module. (#2530)Utkarsh Upadhyay2017-07-024-9/+15
| | | | Only C implementation was tested.
* bpo-30441: Fix bug when modifying os.environ while iterating over it (#2409)Osvaldo Santana Neto2017-07-014-1/+29
|
* bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406)xdegaye2017-07-013-1/+163
|
* AppVeyor: run tests with --fail-env-changed (#2522)Victor Stinner2017-06-301-1/+1
|
* bpo-30804: fix macOS build with framework enabled. (#2516)INADA Naoki2017-06-301-2/+2
|
* bpo-30818: test_ftplib calls asyncore.close_all() (#2514)Victor Stinner2017-06-301-0/+3
| | | | | | | | | | Always clear asyncore socket map using asyncore.close_all(ignore_all=True) in tearDown() method. This change should fix this warning: Warning -- asyncore.socket_map was modified by test_ftplib Before: {} After: {4: <test.test_ftplib.DummyTLS_FTPServer 127.0.0.1:0 at 0x805feccf0>}
* test_urllib2_localnet: clear server variable (#2510)Victor Stinner2017-06-301-4/+13
| | | | Set the server attribute to None in cleanup to avoid dangling threads.
* buildbot: pass --fail-env-changed to regrtest (#2509)Victor Stinner2017-06-302-2/+2
| | | Make tests fail if a test altered the environment.
* bpo-30812: Fix test_warnings, restore _showwarnmsg (#2504)Victor Stinner2017-06-301-4/+9
| | | | bpo-26568, bpo-30812: Fix test_showwarnmsg_missing(): restore the attribute after removing it.
* bpo-30813: Fix unittest when hunting refleaks (#2502)Victor Stinner2017-06-301-0/+6
| | | | | | bpo-11798, bpo-16662, bpo-16935, bpo-30813: Skip test_discover_with_module_that_raises_SkipTest_on_import() and test_discover_with_init_module_that_raises_SkipTest_on_import() of test_unittest when hunting reference leaks using regrtest.
* bpo-30280: Cleanup threads in ayncio tests (#2501)Victor Stinner2017-06-302-5/+9
| | | | | | | | | | | | | | | | * bpo-30280: asyncio now cleans up threads asyncio base TestCase now uses threading_setup() and threading_cleanup() of test.support to cleanup threads. * asyncio: Fix TestBaseSelectorEventLoop cleanup bpo-30280: TestBaseSelectorEventLoop of test.test_asyncio.test_selector_events now correctly closes the event loop: cleanup its executor to not leak threads. Don't override the close() method of the event loop, only override the_close_self_pipe() method.
* threading_cleanup() failure marks test as ENV_CHANGED (#2500)Victor Stinner2017-06-303-1/+22
| | | | | | | If threading_cleanup() fails to cleanup threads, set a a new support.environment_altered flag to true, flag uses by save_env which is used by regrtest to check if a test altered the environment. At the end, the test file fails with ENV_CHANGED instead of SUCCESS, to report that it altered the environment.
* bpo-30807: signal.setitimer() may disable the timer by mistake (#2493)Antoine Pitrou2017-06-303-0/+19
| | | | | | * bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb
* bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more tests. ↵csabella2017-06-296-100/+141
| | | | | | | (#2283) Split TextViewer class into ViewWindow, ViewFrame, and TextFrame classes so that instances of the latter two can be placed with other widgets within a multiframe window. Patch by Cheryl Sabella.
* bpo-30647: Check nl_langinfo(CODESET) in locale coercion (GH-2374)Nick Coghlan2017-06-292-15/+29
| | | | | | | | | | | | | - On some versions of FreeBSD, setting the "UTF-8" locale succeeds, but a subsequent "nl_langinfo(CODESET)" fails - adding a check for this in the coercion logic means that coercion will happen on systems where this check succeeds, and will be skipped otherwise - that way CPython should automatically adapt to changes in platform behaviour, rather than needing a new release to enable coercion at build time - this also allows UTF-8 to be re-enabled as a coercion target, restoring the locale coercion behaviour on Mac OS X
* bpo-30796: Fix failures in signal delivery stress test (#2488)Antoine Pitrou2017-06-291-15/+50
| | | | | | | | | | * bpo-30796: Fix failures in signal delivery stress test setitimer() can have a poor minimum resolution on some machines, this would make the test reach its deadline (and a stray signal could then kill a subsequent test). * Make sure to clear the itimer after the test
* bpo-30776: regrtest: reduce memleak false positive (#2484)Victor Stinner2017-06-291-10/+3
| | | Only report a leak if each run leaks at least one memory block.
* bpo-29585: Fix sysconfig.get_config_var("PYTHONFRAMEWORK") (GH-2483)INADA Naoki2017-06-295-7/+7
| | | | | | | | | | | `PYTHONFRAMEWORK` is defined in `Makefile` and it shoulnd't be used in `pyconfig.h`. `sysconfig.py --generate-posix-vars` reads config vars from Makefile and `pyconfig.h`. Conflicting variables should be avoided. Especially, string config variables in Makefile are unquoted, but in `pyconfig.h` are keep quoted. So it should be private (starts with underscore).
* bpo-30726: Also fix pyexpat.vcxproj (#2375)Segev Finer2017-06-281-1/+1
|
* bpo-30703: Improve signal delivery (#2415)Antoine Pitrou2017-06-285-37/+171
| | | | | | | | | | | | | | | | | | | | * Improve signal delivery Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions. * Remove unused function * Improve comments * Add stress test * Adapt for --without-threads * Add second stress test * Add NEWS blurb * Address comments @haypo
* bpo-23451: Fix socket deprecation warnings in socketmodule.c (#2318)Segev Finer2017-06-284-171/+24
| | | | | | | | | | | | | | | | | | * bpo-23451: Fix WSASocket and WSADuplicateSocket deprecation warnings * bpo-23451: Add backwards compatibility note about socket share/fromshare * bpo-23451: Fixed `WSAAddressToString`/`WSAStringToAddress` deprecation warnings * bpo-23451: Use `inet_pton`/`inet_ntop` instead of `WSAAddressToString`/`WSAStringToAddress` * bpo-23451: Move `HAVE_INET_PTON` from _socket.vcxproj to pyconfig.h * bpo-23451: Add SUPPRESS_DEPRECATED_CALL to socketmodule.c * bpo-23451: Add a NEWS.d entry * bpo-23451: Corrected NEWS.d entry
* bpo-30362 : Add list options to launcher. (#1578)Steve (Gadget) Barnes2017-06-284-43/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-30362 Add list options to launcher. * bpo-30362 Add list options to help message. * To avoid possible later conflict with python replaced flags with --launcher-list and --launcher-list-paths * bpo-30362 Changed flag to -0 as suggested on review. * bpo-30362: Modified to default to not path for -0, -0p to dispaly path and append * to default * bpo-30362: Modified to display list on required version not found. * bpo-30362 add --list and --list-paths added back in following review by paul.moore * bpo-30362 Cleaner handing of -0 & -0p by not calling exit directly per review by @zooba * bpo-30362: Tidy up and add news & what's new Removed commented out line of code in PC/launcher.c. Added the results of using blurb to add details of bpo-30362 & bpo-30291. Updated Doc/whatsnew/3.7.rst to add a Windows only section covering both tickets. * bpo-30362 Resolve conflict in Doc/whatsnew/3.7.rst * bpo-30362:Address Whitespace Issue in Doc\whatsnew\3.7.rst * Shorten NEWS message for bpo-30362 * Shorten NEWS item for bpo-30291
* bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h (#2477)Victor Stinner2017-06-282-50/+53
| | | | | | | | | | * bpo-29585: Fix PC/pyconfig.h whitespaces Run "make patchcheck". * bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h * site: Fix path separator in _get_path() on Windows