summaryrefslogtreecommitdiff
path: root/Lib/test/support.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14107: test: Fix a deadlock involving the memory watchdog thread.Charles-François Natali2012-02-261-0/+10
|
* Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-211-92/+222
|\
| * Issue #13453: Catch EAI_FAIL in support.transient_internet.Charles-François Natali2011-12-101-92/+222
| |\
| | * Update skip message printed by test.support.get_attribute.Éric Araujo2011-10-051-2/+1
| | | | | | | | | | | | | | | | | | This helper was changed to work with any object instead of only modules (or technically something with a __name__ attribute, see code in 3.2) but the message stayed as is.
| | * Collect stats a bit more oftenAntoine Pitrou2011-10-041-1/+1
| | |
| | * Use the faulthandler module's infrastructure to write a GIL-lessAntoine Pitrou2011-10-041-43/+66
| | | | | | | | | | | | memory watchdog for timely stats collection.
| | * Start fixing test_bigmem:Antoine Pitrou2011-10-041-48/+156
| | |\ | | | | | | | | | | | | | | | | - bigmemtest is replaced by precisionbigmemtest - add a poor man's watchdog thread to print memory consumption
| | | * Introduce support.requires_freebsd_version decorator.Charles-François Natali2011-10-031-12/+28
| | | |
| | | * Close issue 12958 by flagging expected failures in test_socket on Mac OS XNick Coghlan2011-09-191-0/+12
| | | |
| | | * Remove misleading comment and code.Antoine Pitrou2011-08-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows does set the errno attribute to ENOENT, but the error message displays the Windows error number (3 -> ERROR_PATH_NOT_FOUND), not the errno number (2 -> ENOENT). The Unix errno corresponding to 3 is ESRCH, explaining the confusion, which can be seen in the following snippet: >>> shutil.rmtree("foo") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "Z:\default\lib\shutil.py", line 272, in rmtree onerror(os.listdir, path, sys.exc_info()) File "Z:\default\lib\shutil.py", line 270, in rmtree names = os.listdir(path) WindowsError: [Error 3] The system cannot find the path specified: 'foo\\*.*' >>> e = sys.last_value >>> e.errno 2 >>> e.winerror 3 >>> errno.errorcode[2] 'ENOENT' For reference, see PC/errmap.h and http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx
| | | * Issue #11564: Avoid crashes when trying to pickle huge objects or containersAntoine Pitrou2011-08-291-46/+132
| | | |\ | | | | | | | | | | | | | | | (more than 2**31 items). Instead, in most cases, an OverflowError is raised.
| | | | * Issue #12326: refactor usage of sys.platformVictor Stinner2011-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use str.startswith(tuple): I didn't know this Python feature, Python rocks! * Replace sometimes sys.platform.startswith('linux') with sys.platform == 'linux' * sys.platform doesn't contain the major version on Cygwin on Mac OS X (it's just 'cygwin' and 'darwin')
| | | | * Issue #12626: In regrtest, allow to filter tests using a glob filterAntoine Pitrou2011-07-291-0/+22
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with the `-m` (or `--match`) option. This works with all test cases using the unittest module. This is useful with long test suites such as test_io or test_subprocess.
| | | | * \ Issue #12624: It is now possible to fail after the first failure whenAntoine Pitrou2011-07-231-2/+4
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | running in verbose mode (`-v` or `-W`), by using the `--failfast` (or `-G`) option to regrtest. This is useful with long test suites such as test_io or test_subprocess.
| | | | * | | Issue #11049: adding some tests to test.supportEli Bendersky2011-07-231-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on original patch by Giampaolo Rodola with contributions from R. David Murray
| | | | * | | Merge from 3.2Antoine Pitrou2011-07-151-6/+13
| | | | |\ \ \
| | | | * | | | Always use repr for regrtest resources namesÉric Araujo2011-07-151-3/+3
| | | | | | | |
| | | | * | | | add a contextmanager to disable the gcBenjamin Peterson2011-07-141-0/+10
| | | | | | | |
| | | | * | | | Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporaryAntoine Pitrou2011-07-091-32/+107
| | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | failure in name resolution. Should fix a buildbot failure.
| | | | | * | | | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-301-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle).
| | | | | * | | | Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymoreVictor Stinner2011-06-291-31/+101
| | | | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regrtest doesn't check that tests doesn't write something to stdout anymore. Don't replace sys.stdout by the original sys.stdout to be able to capture the output for regrtest -W.
| | | | | | * \ \ \ branch mergeBrian Curtin2011-06-131-1/+1
| | | | | | |\ \ \ \
| | | | | | | * \ \ \ Merge from 3.2 for Issue #12084.Brian Curtin2011-06-131-1/+1
| | | | | | | |\ \ \ \
| | | | | | * | \ \ \ \ (Merge 3.2) test.support: don't catch OSError when can_symlink() removes theVictor Stinner2011-06-071-1/+2
| | | | | | |\ \ \ \ \ \ | | | | | | | |/ / / / / | | | | | | |/| | | | | | | | | | | | | | | | | temporary symbolic link.
| | | | | | * | | | | | Issue #12196: Make test.support's requires_linux_version a decorator.Charles-François Natali2011-06-031-9/+28
| | | | | | | | | | | |
| | | | | | * | | | | | (Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,Victor Stinner2011-06-011-15/+24
| | | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the file descriptor of a pipe closed in the parent process is valid in the child process according to fstat(), but the mode of the file descriptor is invalid, and read or write raise an error. test.support.requires_mac_ver() is now a decorator, as suggested by Ezio Melotti, and its docstring is fixed (linux_version => mac_ver).
| | | | | | * | | | | | | test.support: add requires_mac_ver() functionVictor Stinner2011-06-011-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add also linux_version() to __all__.
| | | | | | * | | | | | | Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than theCharles-François Natali2011-05-291-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | underlying OS pipe buffer size.
| | | | | | * | | | | | | Issue #12158: Move linux_version() from test_socket to test.supportVictor Stinner2011-05-241-0/+8
| | | | | | | | | | | | |
| | | | | | * | | | | | | Skip tests that require zlib in the packaging tests. Also add a ↵Ezio Melotti2011-05-191-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requires_zlib decorator to test.support.
| | | | | | * | | | | | | Merge with 3.2 and also remove captured_output from __all__ (see #7960).Ezio Melotti2011-05-141-3/+4
| | | | | | |\ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ #7960: merge with 3.2.Ezio Melotti2011-05-141-8/+8
| | | | | | |\ \ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ \ #5723: merge with 3.2.Ezio Melotti2011-05-141-2/+2
| | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ \ \ Merge with 3.2.Ezio Melotti2011-05-141-10/+6
| | | | | | |\ \ \ \ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ \ \ \ #11910: merge with 3.2.Ezio Melotti2011-05-091-4/+8
| | | | | | |\ \ \ \ \ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ \ \ \ \ merge 3.2Benjamin Peterson2011-05-081-27/+58
| | | | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | * \ \ \ \ \ \ \ \ \ \ \ Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)Antoine Pitrou2011-04-291-27/+58
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | * | | | | | | | | | | | Issue #11811: Factor out detection of IPv6 support on the current hostAntoine Pitrou2011-04-281-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and make it available as `test.support.IPV6_ENABLED`. Patch by Charles-François Natali.
| | | | | | | | * | | | | | | | | | | | Revert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and aThomas Wouters2011-03-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | few other assertEqual tests that snuck in), and expand the docstrings and comments explaining why and how these tests are supposed to work.
| | | | | | | | * | | | | | | | | | | | Fix transmitting warning options to the children when running tests inAntoine Pitrou2011-03-231-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parallel (thanks Michael for pointing this).
| | | | | | | | * | | | | | | | | | | | Don't leave around a test symlink file.Brett Cannon2011-03-151-1/+3
| | | | | | | | | | | | | | | | | | | |
| | | | | | | | * | | | | | | | | | | | MergeAntoine Pitrou2011-03-151-1/+4
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | * | | | | | | | | | | | Add warnings support to test.support.args_from_interpreter_flags().Brett Cannon2011-03-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the -j flag to regrtest to propagate warnings settings properly.
| | | | | | | | * | | | | | | | | | | | | Merge fix for issue #11501Antoine Pitrou2011-03-151-0/+33
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | |/ / / / / / / / / / / / | | | | | | | | |/| | | | | | | | | | | |
| | | | | | | | * | | | | | | | | | | | | Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.Antoine Pitrou2011-02-261-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Hirokazu Yamamoto.
| | | | | | | | * | | | | | | | | | | | | Removed fcmp and FUZZ from test.support, following the discussion on python-dev:Eli Bendersky2011-02-251-19/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://mail.python.org/pipermail/python-dev/2011-January/107735.html
| | | | | | | | * | | | | | | | | | | | | Fix imports from collections.abcRaymond Hettinger2011-02-231-2/+2
| | | | | | | | | | | | | | | | | | | | |
| | | | | | | | * | | | | | | | | | | | | Issue #10992: make tests pass when run under coverage.Brett Cannon2011-02-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various tests fail when run under coverage. A primary culprit is refcount tests which fail as the counts are thrown off by the coverage code. A new decorator -- test.support.refcount_test -- is used to decorate tests which test refcounts and to skip them when running under coverage. Other tests simply fail because of changes in the system (e.g., __local__ suddenly appearing). Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
| | | | | | | | * | | | | | | | | | | | | Issue #10990: Prevent tests from clobbering a set trace function.Brett Cannon2011-02-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many tests simply didn't care if they unset a pre-existing trace function. This made test coverage impossible. This patch fixes various tests to put back any pre-existing trace function. It also introduces test.support.no_tracing as a decorator which will temporarily unset the trace function for tests which simply fail otherwise. Thanks to Kristian Vlaardingerbroek for helping to find the cause of various trace function unsets.
* | | | | | | | | | | | | | | | | | | | | Make "regrtest -j" "-R"-awareAntoine Pitrou2012-02-201-0/+1
|/ / / / / / / / / / / / / / / / / / / /