summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\
| * Try harder to reap dangling threads in test.support.reap_threads().Antoine 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-0/+1
|\ \ | |/ | | | | | | | | failure in name resolution. Should fix a buildbot failure.
| * Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporaryAntoine Pitrou2011-07-091-0/+1
| | | | | | | | | | | | 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-10/+3
|\ \ | |/ | | | | | | | | | | 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.
| * Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymoreVictor Stinner2011-06-291-10/+3
| | | | | | | | | | | | | | 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 merge?Brian Curtin2011-06-131-1/+4
| |\
* | \ branch mergeBrian Curtin2011-06-131-1/+1
|\ \ \
| * \ \ Merge from 3.2 for Issue #12084.Brian Curtin2011-06-131-1/+1
| |\ \ \ | | |/ /
| | * | Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.Brian Curtin2011-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use of DeviceIoControl to obtain the symlink path via the reparse tag was removed. The code now uses GetFinalPathNameByHandle in the case of a symbolic link and works properly given the added test which creates a symbolic link and calls os.stat on it from multiple locations. Victor Stinner also noticed an issue with os.lstat following the os.stat code path when being passed bytes. The posix_lstat function was adjusted to properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
* | | | (Merge 3.2) test.support: don't catch OSError when can_symlink() removes theVictor Stinner2011-06-071-1/+2
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| temporary symbolic link.
| * | test.support: can_symlink() removes the temporary symbolic linkVictor Stinner2011-06-071-1/+4
| |/
* | 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).
| * Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the fileVictor Stinner2011-06-011-1/+29
| | | | | | | | | | | | | | | | 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. Add also requires_mac_ver() decorator to test.support.
* | 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-231-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
|\ \ | |/
| * Update __all__ and docstring.Ezio Melotti2011-05-141-1/+3
| |
* | #7960: merge with 3.2.Ezio Melotti2011-05-141-8/+8
|\ \ | |/
| * #7960: merge with 3.1.Ezio Melotti2011-05-141-8/+8
| |\
| | * #7960: fix docstrings for captured_output and captured_stdout.Ezio Melotti2011-05-141-8/+8
| | |
| | * #5723: Improve json tests to be executed with and without accelerations.Ezio Melotti2011-05-141-2/+2
| | |
* | | #5723: merge with 3.2.Ezio Melotti2011-05-141-2/+2
|\ \ \ | |/ /
| * | #5723: merge with 3.1.Ezio Melotti2011-05-141-2/+2
| | |
* | | Merge with 3.2.Ezio Melotti2011-05-141-10/+6
|\ \ \ | |/ /
| * | Merge with 3.1.Ezio Melotti2011-05-141-10/+6
| |\ \ | | |/
| | * Change import_fresh_module to work with packages.Ezio Melotti2011-05-141-10/+6
| | |
* | | #11910: merge with 3.2.Ezio Melotti2011-05-091-4/+8
|\ \ \ | |/ /
| * | #11910: merge with 3.1.Ezio Melotti2011-05-091-4/+8
| |\ \ | | |/
| | * #11910: change import_fresh_module to return None when one of the "fresh" ↵Ezio Melotti2011-05-091-4/+8
| | | | | | | | | | | | modules can not be imported.
* | | merge 3.2Benjamin Peterson2011-05-081-2/+3
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-05-081-2/+3
| |\ \ | | |/
| | * put import_fresh_module in __all__Benjamin Peterson2011-05-081-0/+1
| | |
* | | Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)Antoine Pitrou2011-04-281-0/+2
|\ \ \ | |/ /
| * | Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)Antoine Pitrou2011-04-281-0/+2
| | |
* | | 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
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Merge fix for issue #11501Antoine Pitrou2011-03-151-0/+33
| |\ \ | | |/