summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30107: Make SuppressCrashReport quiet on macOS (#1279)Victor Stinner2017-04-251-4/+9
| | | | | | | | | On macOS, SuppressCrashReport now redirects /usr/bin/defaults command stderr into a pipe to not pollute stderr. It fixes a test_io.test_daemon_threads_shutdown_stderr_deadlock() failure when the CrashReporter domain doesn't exists. Message logged into stderr: 2017-04-24 16:57:21.432 defaults[41046:2462851] The domain/default pair of (com.apple.CrashReporter, DialogType) does not exist
* bpo-30125: disable faulthandler in ctypes test_SEH (#1237)Victor Stinner2017-04-211-0/+16
| | | | | | | | Disable faulthandler to run test_SEH() of test_ctypes to prevent the following log with a traceback: Windows fatal exception: access violation Add support.disable_faulthandler() context manager.
* support.threading_cleanup() log a warning on fail (#1195)Victor Stinner2017-04-201-1/+8
| | | | | | | | | | | | The @reap_threads decorator and the threading_cleanup() function of test.support now log a warning if they fail to clenaup threads. Fix also the usage of support.threading_cleanup() in test_urllib2_localnet. The log may help to debug such other warning seen on the AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot: Warning -- threading._dangling was modified by test_logging
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-1/+1
|
* support: temp_dir() and change_cwd() uses repr() in error messageVictor Stinner2017-02-081-2/+2
| | | | | Serhiy Storshaka pointed me that str(path) can emit a BytesWarning: use repr(path) instead.
* Update test_support for my temp_dir/change_cwd changesVictor Stinner2017-02-081-1/+1
|
* support: add more info on temp_dir() and change_cwd() failureVictor Stinner2017-02-081-4/+6
| | | | Log the OSError exception message.
* Merge 3.6Victor Stinner2017-01-121-7/+18
|\
| * Merge 3.5Victor Stinner2017-01-121-7/+18
| |\
| | * Fix script_helper.run_python_until_end(): copy SYSTEMROOTVictor Stinner2017-01-121-7/+18
| | | | | | | | | | | | | | | | | | Windows requires at least the SYSTEMROOT environment variable to start Python. If run_python_until_end() doesn't copy SYSTEMROOT, the function always fail on Windows.
* | | Remove unused imports.Serhiy Storchaka2016-12-161-3/+0
| | |
* | | Issue #28683: Merge 3.6.Xavier de Gaye2016-12-141-0/+10
|\ \ \ | |/ /
| * | Issue #28683: Fix the tests that bind() a unix socket and raise PermissionErrorXavier de Gaye2016-12-141-0/+10
| | | | | | | | | | | | on Android for a non-root user.
* | | Issue #28759: Merge 3.6.Xavier de Gaye2016-12-131-1/+2
|\ \ \ | |/ /
| * | Issue #28759: Fix the tests that fail with PermissionError when run asXavier de Gaye2016-12-131-1/+2
| | | | | | | | | | | | a non-root user on Android where access rights are controled by SELinux MAC.
* | | Issue #28512: Fixed setting the offset attribute of SyntaxError bySerhiy Storchaka2016-12-111-3/+10
|\ \ \ | |/ / | | | | | | PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
| * | Issue #28512: Fixed setting the offset attribute of SyntaxError bySerhiy Storchaka2016-12-111-3/+10
| |\ \ | | |/ | | | | | | PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
| | * Issue #28512: Fixed setting the offset attribute of SyntaxError bySerhiy Storchaka2016-12-111-3/+10
| | | | | | | | | | | | PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
* | | Issue #26939: Merge 3.6.Xavier de Gaye2016-12-081-0/+16
|\ \ \ | |/ /
| * | Issue #26939: Add the support.setswitchinterval() function to fixXavier de Gaye2016-12-081-0/+16
| | | | | | | | | | | | test_functools hanging on the Android armv7 qemu emulator.
* | | Issue #28847: dbm.dumb now supports reading read-only files and no longerSerhiy Storchaka2016-12-071-2/+2
|\ \ \ | |/ / | | | | | | writes the index file when it is not changed.
| * | Issue #28847: dbm.dumb now supports reading read-only files and no longerSerhiy Storchaka2016-12-071-2/+2
| |\ \ | | |/ | | | | | | writes the index file when it is not changed.
| | * Issue #28847: dbm.dumb now supports reading read-only files and no longerSerhiy Storchaka2016-12-071-3/+3
| | | | | | | | | | | | writes the index file when it is not changed.
| * | Issue #28666: Fix removing readonly directories on Windows.Serhiy Storchaka2016-11-201-1/+1
| |\ \ | | |/
| | * Issue #28666: Fix removing readonly directories on Windows.Serhiy Storchaka2016-11-201-1/+1
| | |
* | | Add sys.getandroidapilevel()Victor Stinner2016-12-021-2/+7
| | | | | | | | | | | | | | | | | | | | | Issue #28740: Add sys.getandroidapilevel(): return the build time API version of Android as an integer. Function only available on Android.
* | | Issue #28666: Try to fix removing readonly directories on Windows.Serhiy Storchaka2016-11-201-1/+1
|/ /
* | Issue #28666: Now test.support.rmtree is able to remove unwritable orSerhiy Storchaka2016-11-201-15/+16
|\ \ | |/ | | | | unreadable directories on Windows too.
| * Issue #28666: Now test.support.rmtree is able to remove unwritable orSerhiy Storchaka2016-11-201-15/+16
| | | | | | | | unreadable directories on Windows too.
* | Issue #28666: Now test.support.rmtree is able to remove unwritable orSerhiy Storchaka2016-11-201-1/+31
|\ \ | |/ | | | | unreadable directories.
| * Issue #28666: Now test.support.rmtree is able to remove unwritable orSerhiy Storchaka2016-11-201-1/+31
| | | | | | | | unreadable directories.
* | Issue 26931: Skip the test_distutils tests using a compiler executableXavier de Gaye2016-11-171-1/+26
| | | | | | | | that is not found
* | Issue 28668: Merge 3.5Xavier de Gaye2016-11-151-1/+17
|\ \ | |/
| * Issue 28668: Skip tests where instanciation of multiprocessing.QueueXavier de Gaye2016-11-151-0/+17
| | | | | | | | would raise ImportError
* | Issue #26934: Handle _ANDROID_API_LEVEL is None on WindowsXavier de Gaye2016-11-131-1/+1
| |
* | Fix test_faulthandler on Android where raise() exits with 0Xavier de Gaye2016-11-131-2/+10
| |
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* | Adds test.support.PGO and skips tests that are not useful for PGO.Steve Dower2016-09-071-1/+5
| |
* | Issue #27355: Removed support for Windows CE. It was never finished,Larry Hastings2016-09-051-1/+1
| | | | | | | | and Windows CE is no longer a relevant platform for Python.
* | Merge with 3.5Terry Jan Reedy2016-09-051-2/+3
|\ \ | |/
| * Issue #27918# test.resource.is_gui_available no longer flashes tk window.Terry Jan Reedy2016-09-051-2/+3
| | | | | | | | Also, don't run it if 'gui' is not requested. Patch by Xiang Zhang.
* | Merge 3.5 (script_helper)Victor Stinner2016-08-171-8/+8
|\ \ | |/
| * script_helper: kill the subprocess on errorVictor Stinner2016-08-171-8/+8
| | | | | | | | | | | | | | | | If Popen.communicate() raises an exception, kill the child process to not leave a running child process in background and maybe create a zombi process. This change fixes a ResourceWarning in Python 3.6 when unit tests are interrupted by CTRL+c.
* | Issue #27472: Add test.support.unix_shell as the path to the default shell.Xavier de Gaye2016-07-221-1/+6
| |
* | Issue #27027: Added test.support.is_android that is True when this is anXavier de Gaye2016-07-101-1/+3
| | | | | | | | Android build.
* | Issue #19527: Fixed tests with defined COUNT_ALLOCS.Serhiy Storchaka2016-07-031-0/+3
|\ \ | |/
| * Issue #19527: Fixed tests with defined COUNT_ALLOCS.Serhiy Storchaka2016-07-031-0/+3
| |
* | Issue #18300: Merge from 3.5Berker Peksag2016-06-241-0/+4
|\ \ | |/
| * Issue #18300: Set TERM='' by default in assert_python_*Berker Peksag2016-06-241-0/+4
| |
* | Issue #27289: Merge from 3.5Berker Peksag2016-06-121-1/+2
|\ \ | |/