summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (#2938)Terry Jan Reedy2017-07-292-35/+42
| | | | | The notebook looks a bit better. It will work better with separate page classes. Traversal of widgets by Tab works better. Switching tabs with keys becomes possible. The font sample box works better at large font sizes. One of the two simulated click tests no longer works. This will be investigated while fixing a bug with the widget itself.
* bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (#2936)Terry Jan Reedy2017-07-282-16/+23
| | | | Add clear method for tests. Adjust tests to use global instance. Remove unneeded ConfigDialog method.
* bpo-30853: IDLE: Convert font and general vars to use VarTrace (#2914)csabella2017-07-281-62/+42
| | | | | Instance tracers manages pairs consisting of a tk variable and a callback function. When tracing is turned on, setting the variable calls the function. Test coverage for the new class is 100%.
* bpo-31066: Fix test_httpservers.test_last_modified() (#2933)Victor Stinner2017-07-281-4/+6
| | | Write the temporary file on disk and then get its modification time.
* bpo-31067: test_subprocess calls reap_children() (#2931)Victor Stinner2017-07-281-0/+2
| | | | test_subprocess now also calls reap_children() in tearDown(), not only on setUp().
* bpo-29585: fix test fail on macOS Framework build (GH-2928)INADA Naoki2017-07-281-1/+5
|
* bpo-28095: Re-enable temporarily disabled part of test_startup_imports on ↵Ned Deily2017-07-281-3/+1
| | | | | | | | macOS (#2927) The changes for bpo-29585 eliminate the extra imports on macOS that caused the original test failure. This reverts commit 8a2150aae6db4d664c96a038ef6abacd4bcbcdc9.
* bpo-31060: IDLE: Finish regrouping ConfigDialog methods (#2908)Terry Jan Reedy2017-07-271-768/+772
| | | Finish resorting the 72 ConfigDialog methods into 7 groups that represent the dialog, action buttons, and font, highlight, keys, general, and extension pages. This will help with continuing to add tests and improve the pages. It will enable splitting ConfigDialog into 6 or 7 more comprehensible classes.
* bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915)Victor Stinner2017-07-271-0/+4
| | | | | There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if dev_t is larger than 32-bit, until the bug is fixed in FreeBSD CURRENT.
* bpo-31028: Fix test_pydoc when run directly (#2864)Victor Stinner2017-07-271-1/+1
| | | | | | | | | | * bpo-31028: Fix test_pydoc when run directly Fix get_pydoc_link() of test_pydoc to fix "./python Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent relative directories. * Use realpath() instead of abspath()
* bpo-31003: IDLE - Add more tests for General tab (#2859)Terry Jan Reedy2017-07-273-198/+379
| | | | | | | * In configdialog: Document causal pathways in create_page_general. Move related functions to follow this. Simplify some attribute names. * In test_configdialog: Add tests for load and helplist functions. Coverage for the general tab is now complete, and 63% overall.
* bpo-30853: IDLE: Factor a VarTrace class from configdialog.ConfigDialog. ↵csabella2017-07-262-2/+147
| | | | | | (#2872) The new class manages pairs of tk Variables and trace callbacks. It is completely covered by new tests.
* bpo-30188: fix TypeError in test_nntplib (GH-2892)INADA Naoki2017-07-261-2/+2
| | | fixes regression of 5b4feb7
* bpo-31043: fixed test_datetime run twice. (GH-2891)Utkarsh Upadhyay2017-07-261-2/+0
|
* bpo-31019: Fix multiprocessing.Process.is_alive() (#2875)Victor Stinner2017-07-261-2/+8
| | | | | | multiprocessing.Process.is_alive() now removes the process from the _children set if the process completed. The change prevents leaking "dangling" processes.
* bpo-30302 Make timedelta.__repr__ more informative. (#1493)Utkarsh Upadhyay2017-07-253-15/+25
|
* bpo-31034: Reliable signal handler for test_asyncio (#2867)Victor Stinner2017-07-252-31/+45
| | | | | | | | | * bpo-31034: Reliable signal handler for test_asyncio Don't rely on the current SIGHUP signal handler, make sure that it's set to the "default" signal handler: SIG_DFL. * Add comments
* bpo-31009: Fix support.fd_count() on Windows (#2862)Victor Stinner2017-07-252-29/+43
| | | | | | | | | | * bpo-31009: Fix support.fd_count() on Windows On Windows, test.support.fd_count() now calls msvcrt.CrtSetReportMode() to not kill the process nor log any error on stderr on os.dup(fd) if the file descriptor is invalid. * Fix for release mode
* bpo-31029: test_tokenize Add missing import unittest (#2865)Stéphane Wirtel2017-07-251-0/+1
|
* bpo-26762: test_multiprocessing close more queues (#2855)Victor Stinner2017-07-251-3/+15
| | | | | | * Close explicitly queues to make sure that we don't leave dangling threads * test_queue_in_process(): remove unused queue * test_access() joins also the process to fix a random warning
* test_multiprocessing detects dangling per test case (#2841)Victor Stinner2017-07-241-14/+67
| | | | | | | | | | | | | bpo-26762: test_multiprocessing now detects dangling processes and threads per test case classes: * setUpClass()/tearDownClass() of mixin classes now check if multiprocessing.process._dangling or threading._dangling was modified to detect "dangling" processses and threads. * ManagerMixin.tearDownClass() now also emits a warning if it still has more than one active child process after 5 seconds. * tearDownModule() now checks for dangling processes and threads before sleep 500 ms. And it now only sleeps if there is a least one dangling process or thread.
* test_multiprocessing: Fix dangling process/thread (#2850)Victor Stinner2017-07-241-2/+22
| | | | | | | bpo-26762: Fix more dangling processes and threads in test_multiprocessing: * Queue: call close() followed by join_thread() * Process: call join() or self.addCleanup(p.join)
* bpo-30980: Fix double close in asyncore.file_wrapper (#2789)Nir Soffer2017-07-242-2/+6
| | | | | | | | | | | | | | | * bpo-30980: Fix close test to fail test_close_twice was not considering the fact that file_wrapper is duping the file descriptor. Closing the original descriptor left the duped one open, hiding the fact that close protection is not effective. * bpo-30980: Fix double close protection Invalidated self.fd before closing, handling correctly the case when os.close raises. * bpo-30980: Fix fd leak introduced in the fixed test
* bpo-30188: test_nntplib catch also ssl.SSLEOFError (#2843)Victor Stinner2017-07-241-1/+6
| | | | Catch also ssl.SSLEOFError in NetworkedNNTPTests setUpClass(). EOFError was already catched.
* bpo-26762: Avoid daemon process in _test_multiprocessing (#2842)Victor Stinner2017-07-241-2/+4
| | | | | test_level() of _test_multiprocessing._TestLogging now uses regular processes rather than daemon processes to prevent zombi processes (to not "leak" processes).
* bpo-30993: IDLE - Improve configdialog font page and tests. (#2831)Terry Jan Reedy2017-07-242-197/+213
| | | | | | In configdialog: Document causal pathways in create_font_tab docstring. Simplify some attribute names. Move set_samples calls to var_changed_font (idea from Cheryl Sabella). Move related functions to positions after the create widgets function. In test_configdialog: Fix test_font_set so not order dependent. Fix renamed test_indent_scale so it tests the widget. Adjust tests for movement of set_samples call. Add tests for load functions. Put all font tests in one class and tab indent tests in another. Except for two lines, these tests completely cover the related functions.
* bpo-30993: IDLE - Improve configdialog font page and tests. (#2818)Terry Jan Reedy2017-07-232-56/+63
| | | | | | | | * Document causal event pathways in docstring. * Simplify some attribute names. * Rename test_bold_toggle_set_samples to make test_font_set fail. * Fix test_font_set so not order dependent. * Fix renamed test_indent_scale so it tests the widget.
* bpo-30919: shared memory allocation performance regression in ↵Antoine Pitrou2017-07-231-10/+16
| | | | | | | | | | multiprocessing (#2708) * Fix #30919: shared memory allocation performance regression in multiprocessing * Change strategy for Arena directory choice * Add blurb
* bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command ↵Dong-hee Na2017-07-222-1/+7
| | | | (#1214)
* bpo-26732: fix too many fds in processes started with the "forkserver" ↵Antoine Pitrou2017-07-224-33/+71
| | | | | | | | | | method (#2813) * bpo-26732: fix too many fds in processes started with the "forkserver" method A child process would inherit as many fds as the number of still-running children. * Add blurb and test comment
* bpo-30981: IDLE: Augment one configdialog font page test (#2810)Terry Jan Reedy2017-07-222-14/+32
| | | | Remove broken test of bold_toggle and test it along with its command, set_samples. This has been incorporated into 3.6 backport PR-2796.
* Fix test failure without ctypes (#2802)Antoine Pitrou2017-07-211-1/+1
|
* bpo-30891: Fix again importlib _find_and_load() (#2665)Victor Stinner2017-07-211-5/+5
| | | | | | | | | Use sys.modules.get() in the "with _ModuleLockManager(name):" block to protect the dictionary key with the module lock and use an atomic get to prevent race condition. Remove also _bootstrap._POPULATE since it was unused (_bootstrap_external now has its own _POPULATE object), add a new _SENTINEL object instead.
* bpo-19896: Add typecodes 'q' and 'Q' to multiprocessing.sharedctypes (#2741)Gareth Rees2017-07-212-11/+19
| | | | | | | | | | * bpo-19896: Add typcodes 'q' and 'Q' to multiprocessing.sharedctypes. Patch by Antony Lee. * Add NEWS entry. * Slightly tweak NEWS entry Make it clear this is more of a fix rather than a new feature.
* bpo-30981: temporarity skip failing IDLE test class (#2798)Terry Jan Reedy2017-07-212-3/+5
|
* bpo-30981: IDLE -- Add more configdialog font page tests. (#2794)Terry Jan Reedy2017-07-212-63/+53
|
* bpo-28523: IDLE: Use 'color' instead of 'colour'. (#2787)Terry Jan Reedy2017-07-211-54/+54
|
* bpo-30822: Fix testing of datetime module. (#2530) (#2783)Utkarsh Upadhyay2017-07-213-9/+14
| | | Only C implementation was tested.
* bpo-30822: Exclude tzdata from regrtest --all (#2775)Victor Stinner2017-07-203-5/+25
| | | | | | | | | | | | | When running the test suite using --use=all / -u all, exclude tzdata since it makes test_datetime too slow (15-20 min on some buildbots) which then times out on some buildbots. -u tzdata must now be enabled explicitly, -u tzdata or -u all,tzdata, to run all test_datetime tests. Fix also regrtest command line parser to allow passing -u extralargefile to run test_zipfile64. Travis CI: remove -tzdata. Replace -u all,-tzdata,-cpu with -u all,-cpu since tzdata is now excluded from -u all.
* bpo-30968: Fix test_get_font in IDLE's test_config. (#2769)terryjreedy2017-07-201-1/+1
|
* bpo-29403: Fix mock's broken autospec behavior on method-bound builtin ↵Aaron Gallagher2017-07-202-1/+16
| | | | | | | | | | | | | | | | | | | functions (GH-3) Cython will, in the right circumstances, offer a MethodType instance where im_func is a builtin function. Any instance of MethodType is automatically assumed to be a Python-defined function (more specifically, a function that has an inspectable signature), but _set_signature was still conservative in its assumptions. As a result _set_signature would return early with None instead of a mock since the im_func had no inspectable signature. This causes problems deeper inside mock, as _set_signature is assumed to _always_ return a mock, and nothing checked its return value. In similar corner cases, autospec will simply not check the spec of the function, so _set_signature is amended to now return early with the original, not-wrapped mock object. Patch by Aaron Gallagher.
* bpo-30917: IDLE: Fix mock_config deepcopy to read_string (#2754)Louie Lu2017-07-191-5/+11
| | | Patch by LouieLu.
* Use pythontest.net instead of debian.org in test_urllib2net (GH-2755)Ammar Askar2017-07-191-3/+3
|
* bpo-30917: IDLE: Add config.IdleConf unittests (#2691)Louie Lu2017-07-182-18/+451
| | | | Patch by Louie Lu.
* bpo-30794: added kill() method to multiprocessing.Process (#2528)Vitor Pereira2017-07-184-9/+32
| | | | | | | | | | | | | | * bpo-30794: added kill() method to multiprocessing.Process * Added entries to documentation and NEWS * Refactored test_terminate and test_kill * Fix SIGTERM and SIGKILL being used on Windows for the tests * Added "versionadded" marker to the documentation * Fix trailing whitespace in doc
* [bpo-30916] Pre-build OpenSSL and Tcl/Tk for Windows (#2688)Steve Dower2017-07-171-0/+1
| | | Updates ssl and tkinter projects to use pre-built externals
* bpo-30936: Fix a reference leak in json when fail to sort keys. (#2712)Serhiy Storchaka2017-07-161-0/+4
|
* bpo-30934: Document coverage details for idlelib tests (#2711)terryjreedy2017-07-161-0/+56
| | | | | * Add section to idlelib/idle-test/README.txt. * Include check that branches are taken both ways. * Exclude IDLE-specific code that does not run during unit tests.
* bpo-30836: fix test_c_locale_coercion on AIX (GH-2713)Nick Coghlan2017-07-151-1/+8
| | | | | | | | AIX uses iso8859-1 in the C locale, not ASCII AIX doesn't currently provide any of the locale coercion locales, but we leave locale coercion enabled in case one gets added in the future.
* Update idlelib/NEWS.txt. (#2703)terryjreedy2017-07-141-0/+31
|