Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merged revisions 85482 via svnmerge from | Antoine Pitrou | 2010-10-14 | 1 | -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 Pitrou | 2010-10-14 | 1 | -0/+1 |
| | |||||
* | Merged revisions 85469 via svnmerge from | Antoine Pitrou | 2010-10-14 | 1 | -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 from | Victor Stinner | 2010-09-10 | 1 | -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 from | Antoine Pitrou | 2010-09-07 | 1 | -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 from | Antoine Pitrou | 2010-09-07 | 1 | -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 from | Alexander Belopolsky | 2010-07-14 | 1 | -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 Murray | 2010-06-03 | 1 | -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) and | Victor Stinner | 2010-05-27 | 1 | -1/+3 |
| | | | | gaierror(EAI_NODATA) | ||||
* | Issue #7449, part 1: fix test_support.py for Python compiled without thread | Victor Stinner | 2010-04-27 | 1 | -4/+18 |
| | |||||
* | adjust gc_collect for Jython | Philip Jenvey | 2010-04-10 | 1 | -1/+3 |
| | |||||
* | #8155: Preserve backward compatibility for test_support.check_warnings(). ↵ | Florent Xicluna | 2010-03-18 | 1 | -3/+8 |
| | | | | Add regression tests. | ||||
* | Issue #7783 and #7787: open_urlresource invalidates the outdated files from ↵ | Florent Xicluna | 2010-03-15 | 1 | -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 Xicluna | 2010-03-13 | 1 | -1/+3 |
| | |||||
* | #7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag. | Florent Xicluna | 2010-03-09 | 1 | -4/+4 |
| | |||||
* | Refresh the documentation for the test.test_support module. | Florent Xicluna | 2010-03-07 | 1 | -5/+5 |
| | |||||
* | Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are | Florent Xicluna | 2010-03-07 | 1 | -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 ascii | Ezio Melotti | 2010-02-20 | 1 | -0/+7 |
| | |||||
* | #7712: add a temp_cwd context manager to test_support and use it in regrtest ↵ | Ezio Melotti | 2010-02-10 | 1 | -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 Cannon | 2010-02-03 | 1 | -1/+1 |
| | |||||
* | Update a docstring to suggest using importlib.import_module instead of ↵ | Brett Cannon | 2010-02-03 | 1 | -1/+1 |
| | | | | calling __import__ directly. | ||||
* | remove archaic functions from test_support | Ezio Melotti | 2010-01-24 | 1 | -25/+1 |
| | |||||
* | Use a custom timeout in test_support.open_urlresource. | Antoine Pitrou | 2009-11-01 | 1 | -2/+10 |
| | |||||
* | Issue #7222: Make thread "reaping" more reliable so that reference | Antoine Pitrou | 2009-10-30 | 1 | -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 verbose | R. David Murray | 2009-10-19 | 1 | -1/+3 |
| | | | | mode for more information if we are already running in verbose mode. | ||||
* | Silence a deprecation warning by using the appropriate replacement construct | Nick Coghlan | 2009-10-18 | 1 | -1/+3 |
| | |||||
* | Move restoration of the os.environ object into the context manager where it ↵ | Nick Coghlan | 2009-10-17 | 1 | -0/+1 |
| | | | | belongs | ||||
* | Don't invoke reload(sys) and use StringIO objects instead of real files to ↵ | Nick Coghlan | 2009-10-17 | 1 | -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 tests | Nick Coghlan | 2009-10-17 | 1 | -0/+25 |
| | |||||
* | put downloaded test support files in Lib/test/data instead of the cwd | Benjamin Peterson | 2009-07-11 | 1 | -5/+4 |
| | |||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -1/+1 |
| | |||||
* | Issue #6215: backport the 3.1 io lib | Antoine Pitrou | 2009-06-12 | 1 | -1/+16 |
| | |||||
* | remove function import | Benjamin Peterson | 2009-05-31 | 1 | -1/+1 |
| | |||||
* | Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running | Antoine Pitrou | 2009-05-31 | 1 | -0/+4 |
| | | | | regression tests in parallel, shortening the total runtime. | ||||
* | a useful decorator for cleaning up threads | Benjamin Peterson | 2009-05-14 | 1 | -0/+11 |
| | |||||
* | Make test.test_support.EnvironmentVarGuard behave like a dictionary. | Walter Dörwald | 2009-05-01 | 1 | -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() for | Walter Dörwald | 2009-04-25 | 1 | -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 Coghlan | 2009-04-22 | 1 | -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 Coghlan | 2009-04-11 | 1 | -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, remove | R. David Murray | 2009-03-31 | 1 | -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 to | R. David Murray | 2009-03-31 | 1 | -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 that | R. David Murray | 2009-03-30 | 1 | -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 of | R. David Murray | 2009-03-30 | 1 | -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 here | Benjamin Peterson | 2009-03-26 | 1 | -1/+1 |
| | |||||
* | must pass argument to get expected behavior ;) | Benjamin Peterson | 2009-03-26 | 1 | -1/+1 |
| | |||||
* | fix incorrect auto-translation of TestSkipped -> unittest.SkipTest | Benjamin Peterson | 2009-03-26 | 1 | -1/+1 |
| | |||||
* | fix naming | Benjamin Peterson | 2009-03-26 | 1 | -1/+1 |
| | |||||
* | remove test_support.TestSkipped and just use unittest.SkipTest | Benjamin Peterson | 2009-03-26 | 1 | -14/+4 |
| | |||||
* | add some useful utilities for skipping tests with unittest's new skipping ↵ | Benjamin Peterson | 2009-03-26 | 1 | -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 ugly | Benjamin Peterson | 2009-03-25 | 1 | -1/+1 |
| |