summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |\ \ | | |/
| | * On behalf of Tarek: Issue #11501: disutils.archive_utils.make_zipfile noAntoine Pitrou2011-03-151-0/+33
| | | | | | | | | | | | | | | longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED compression is used to create the ZipFile. Patch by Natalia B. Bidart.
| | * Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge fromAntoine Pitrou2011-02-281-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda. ........ r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines Fix issues on 32-bit systems introduced by r88460 ........ r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines Fix compile error under MSVC introduced by r88460. ........ r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines Issue #4681: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. ........ r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) ........ r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines Issue #9931: Fix hangs in GUI tests under Windows in certain conditions. Patch by Hirokazu Yamamoto. ........
| | * Merged revisions 87968,87971-87975 via svnmerge fromAntoine Pitrou2011-01-141-24/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87968 | antoine.pitrou | 2011-01-12 21:46:37 +0100 (mer., 12 janv. 2011) | 4 lines Fix the expected memory use of utf-8 encoding. Also, release the one reference to a huge object even when an exception is raised. ........ r87971 | antoine.pitrou | 2011-01-12 22:19:59 +0100 (mer., 12 janv. 2011) | 3 lines Make test skipping message nicer, and remove the rather useless "overhead" parameter. ........ r87972 | antoine.pitrou | 2011-01-12 22:40:20 +0100 (mer., 12 janv. 2011) | 3 lines Fix @bigmemtest when no limit is given by the user (oops) ........ r87973 | antoine.pitrou | 2011-01-12 22:50:44 +0100 (mer., 12 janv. 2011) | 3 lines More informative skip message in @bigaddrspace ........ r87974 | antoine.pitrou | 2011-01-12 22:58:39 +0100 (mer., 12 janv. 2011) | 3 lines A better message again ........ r87975 | antoine.pitrou | 2011-01-12 23:02:45 +0100 (mer., 12 janv. 2011) | 3 lines Fix test_bigaddrspace (some tests didn't trigger the expected MemoryError) ........
| | * Merged revisions 87861,87863 via svnmerge fromAntoine Pitrou2011-01-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87861 | antoine.pitrou | 2011-01-08 11:23:29 +0100 (sam., 08 janv. 2011) | 3 lines Fix test_ssl after r87849 ........ r87863 | antoine.pitrou | 2011-01-08 11:28:11 +0100 (sam., 08 janv. 2011) | 3 lines Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet(). ........
| | * Merged revisions 87695 via svnmerge fromAntoine Pitrou2011-01-031-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87695 | antoine.pitrou | 2011-01-03 19:23:55 +0100 (lun., 03 janv. 2011) | 5 lines Issue #10806, issue #9905: Fix subprocess pipes when some of the standard file descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross Lagerwall. ........
| | * Merged revisions 85482 via svnmerge fromAntoine Pitrou2010-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85482 | antoine.pitrou | 2010-10-14 17:34:31 +0200 (jeu., 14 oct. 2010) | 4 lines Replace the "compiler" resource with the more generic "cpu", so as to mark CPU-heavy tests. ........
| | * Recorded merge of revisions 83987 via svnmerge fromVictor Stinner2010-09-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83987 | victor.stinner | 2010-08-14 00:23:24 +0200 (sam., 14 août 2010) | 2 lines Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE ........
| | * Merged revisions 84666 via svnmerge fromVictor Stinner2010-09-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84666 | victor.stinner | 2010-09-10 13:19:59 +0200 (ven., 10 sept. 2010) | 2 lines Issue #9819: fix TESTFN_UNENCODABLE for japanese code page ........