summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make test.test_support.EnvironmentVarGuard behave like a dictionary.Walter Dörwald2009-05-011-11/+25
| | | | | All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block.
* Issue #5837: Certain sequences of calls to set() and unset() forWalter Dörwald2009-04-251-15/+17
| | | | | | | | 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().
* Issue 5354: Change API for import_fresh_module() to better support ↵Nick Coghlan2009-04-221-14/+48
| | | | test_warnings use case (also fixes some bugs in the original implementation)
* Issue 5354: Provide a standardised testing mechanism for doing fresh imports ↵Nick Coghlan2009-04-111-7/+48
| | | | of modules, including the ability to block extension modules in order to test the pure Python fallbacks
* Improve test_support.import_module docstring, removeR. David Murray2009-03-311-16/+14
| | | | | deprecated flag from get_attribute since it isn't likely to do anything useful.
* A few more test skips via import_module, and change import_module toR. David Murray2009-03-311-2/+2
| | | | | | | return the error message produced by importlib, so that if an import in the package whose import is being wrapped is what failed the skip message will contain the name of that module instead of the name of the wrapped module. Also fixed formatting of some previous comments.
* Change more tests to use import_module for the modules thatR. David Murray2009-03-301-7/+10
| | | | | should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
* Add import_function method to test.test_support, and modify a number ofR. David Murray2009-03-301-0/+14
| | | | | | | | tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
* ** is required hereBenjamin Peterson2009-03-261-1/+1
|
* must pass argument to get expected behavior ;)Benjamin Peterson2009-03-261-1/+1
|
* fix incorrect auto-translation of TestSkipped -> unittest.SkipTestBenjamin Peterson2009-03-261-1/+1
|
* fix namingBenjamin Peterson2009-03-261-1/+1
|
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-14/+4
|
* add some useful utilities for skipping tests with unittest's new skipping ↵Benjamin Peterson2009-03-261-1/+67
| | | | | | | ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details
* this can be slightly less uglyBenjamin Peterson2009-03-251-1/+1
|