summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merged revisions 77729 via svnmerge fromEzio Melotti2010-01-241-25/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77729 | ezio.melotti | 2010-01-24 22:48:35 +0200 (Sun, 24 Jan 2010) | 1 line remove archaic functions from test_support ........
| * Merged revisions 76037 via svnmerge fromAntoine Pitrou2009-11-011-3/+11
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76037 | antoine.pitrou | 2009-11-01 23:02:03 +0100 (dim., 01 nov. 2009) | 3 lines Use a custom timeout in test_support.open_urlresource. ........
| * Merged revisions 75528 via svnmerge fromR. David Murray2009-10-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75528 | r.david.murray | 2009-10-19 13:53:58 -0400 (Mon, 19 Oct 2009) | 4 lines Clarify error report message, and don't recommend running in verbose mode for more information if we are already running in verbose mode. ........
| * Merged revisions 71875 via svnmerge fromWalter Dörwald2009-04-251-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71875 | walter.doerwald | 2009-04-25 14:15:07 +0200 (Sa, 25 Apr 2009) | 7 lines Issue #5837: Certain sequences of calls to set() and unset() for support.EnvironmentVarGuard objects restored the environment variables incorrectly on __exit__. Fix this by recording the initial value of each environment variable on the first access in set() or unset(). ........
| * Merged revisions 68779 via svnmerge fromBenjamin Peterson2009-01-191-0/+12
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68779 | benjamin.peterson | 2009-01-19 11:37:42 -0600 (Mon, 19 Jan 2009) | 1 line make bad file descriptor tests more robust ........
* | Issue #13453: Catch EAI_FAIL in support.transient_internet.Charles-François Natali2011-12-101-0/+1
| |
* | 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 #12085: Fix test_subprocess for my previous commitVictor Stinner2011-05-311-0/+3
| | | | | | | | Replace support by test_support, and add captured_stderr() function.
* | #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
| |
* | Change import_fresh_module to work with packages.Ezio Melotti2011-05-141-10/+6
| |
* | #11910: change import_fresh_module to return None when one of the "fresh" ↵Ezio Melotti2011-05-091-4/+8
| | | | | | | | modules can not be imported.
* | import_fresh_module ought to be in __all__Benjamin Peterson2011-05-081-1/+2
| |
* | 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/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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. ........
* | Add support for "-3" flag (closes #7516)Antoine Pitrou2010-10-141-0/+1
| |
* | Merged revisions 85469 via svnmerge fromAntoine Pitrou2010-10-141-0/+19
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85469 | antoine.pitrou | 2010-10-14 13:12:00 +0200 (jeu., 14 oct. 2010) | 3 lines Inherit interpreter flags in parallel testing ........
* | Recorded merge of revisions 83987 via svnmerge fromVictor Stinner2010-09-101-5/+5
| | | | | | | | | | | | | | | | | | | | 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 84604 via svnmerge fromAntoine Pitrou2010-09-071-1/+10
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84604 | antoine.pitrou | 2010-09-07 23:43:31 +0200 (mar., 07 sept. 2010) | 3 lines Also catch some gaierrors ........
* | Merged revisions 84597-84599 via svnmerge fromAntoine Pitrou2010-09-071-20/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84597 | antoine.pitrou | 2010-09-07 22:42:19 +0200 (mar., 07 sept. 2010) | 5 lines Issue #8574: better implementation of test.support.transient_internet(). Original patch by Victor. ........ r84598 | antoine.pitrou | 2010-09-07 23:05:49 +0200 (mar., 07 sept. 2010) | 6 lines Issue #9792: In case of connection failure, socket.create_connection() would swallow the exception and raise a new one, making it impossible to fetch the original errno, or to filter timeout errors. Now the original error is re-raised. ........ r84599 | antoine.pitrou | 2010-09-07 23:09:09 +0200 (mar., 07 sept. 2010) | 4 lines Improve transient_internet() again to detect more network errors, and use it in test_robotparser. Fixes #8574. ........
* | Merged revisions 82850 via svnmerge fromAlexander Belopolsky2010-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82850 | alexander.belopolsky | 2010-07-13 10:50:16 -0400 (Tue, 13 Jul 2010) | 1 line Set sys.modules[name] to None instead of 0 to block module import. ........
* | #8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD.R. David Murray2010-06-031-7/+22
| | | | | | | | | | | | | | FreeBSD doesn't have socket.EAI_NODATA. I rewrote the routine because there's no easy way to conditionally include a context manager in a with statement. As a side benefit, instead of a stack of context managers there's now only one.
* | Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) andVictor Stinner2010-05-271-1/+3
| | | | | | | | gaierror(EAI_NODATA)
* | Issue #7449, part 1: fix test_support.py for Python compiled without threadVictor Stinner2010-04-271-4/+18
| |
* | adjust gc_collect for JythonPhilip Jenvey2010-04-101-1/+3
| |
* | #8155: Preserve backward compatibility for test_support.check_warnings(). ↵Florent Xicluna2010-03-181-3/+8
| | | | | | | | Add regression tests.
* | Issue #7783 and #7787: open_urlresource invalidates the outdated files from ↵Florent Xicluna2010-03-151-4/+24
| | | | | | | | | | | | the local cache. Use this feature to fix test_normalization.
* | Do not chdir when running test_xml_etree, and enhance the findfile helper.Florent Xicluna2010-03-131-1/+3
| |
* | #7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag.Florent Xicluna2010-03-091-4/+4
| |
* | Refresh the documentation for the test.test_support module.Florent Xicluna2010-03-071-5/+5
| |
* | Issue #7849: Now the utility ``check_warnings`` verifies if the warnings areFlorent Xicluna2010-03-071-9/+90
| | | | | | | | effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
* | skip tests with a non-ascii cwd when the file system encoding is asciiEzio Melotti2010-02-201-0/+7
| |
* | #7712: add a temp_cwd context manager to test_support and use it in regrtest ↵Ezio Melotti2010-02-101-18/+33
| | | | | | | | to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch.
* | Fix a typo in a docstring introduced in r77956.Brett Cannon2010-02-031-1/+1
| |
* | Update a docstring to suggest using importlib.import_module instead of ↵Brett Cannon2010-02-031-1/+1
| | | | | | | | calling __import__ directly.
* | remove archaic functions from test_supportEzio Melotti2010-01-241-25/+1
| |
* | Use a custom timeout in test_support.open_urlresource.Antoine Pitrou2009-11-011-2/+10
| |
* | Issue #7222: Make thread "reaping" more reliable so that referenceAntoine Pitrou2009-10-301-12/+17
| | | | | | | | | | | | | | leak-chasing test runs give sensible results. The previous method of reaping threads could return successfully while some Thread objects were still referenced. This also introduces a new private function: :func:hread._count().
* | Clarify error report message, and don't recommend running in verboseR. David Murray2009-10-191-1/+3
| | | | | | | | mode for more information if we are already running in verbose mode.
* | Silence a deprecation warning by using the appropriate replacement constructNick Coghlan2009-10-181-1/+3
| |
* | Move restoration of the os.environ object into the context manager where it ↵Nick Coghlan2009-10-171-0/+1
| | | | | | | | belongs
* | Don't invoke reload(sys) and use StringIO objects instead of real files to ↵Nick Coghlan2009-10-171-0/+3
| | | | | | | | capture stdin and stdout when needed (ensures all sys attributes remain unmodified after test_xmlrpc runs)
* | Restore original sys.path when running TTK testsNick Coghlan2009-10-171-0/+25
| |
* | put downloaded test support files in Lib/test/data instead of the cwdBenjamin Peterson2009-07-111-5/+4
| |
* | convert usage of fail* to assert*Benjamin Peterson2009-06-301-1/+1
| |
* | Issue #6215: backport the 3.1 io libAntoine Pitrou2009-06-121-1/+16
| |
* | remove function importBenjamin Peterson2009-05-311-1/+1
| |
* | Issue #6152: New option '-j'/'--multiprocess' for regrtest allows runningAntoine Pitrou2009-05-311-0/+4
| | | | | | | | regression tests in parallel, shortening the total runtime.
* | a useful decorator for cleaning up threadsBenjamin Peterson2009-05-141-0/+11
| |