summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18604: Consolidated checks for GUI availability.Zachary Ware2014-05-021-12/+55
| | | | | | | | test_support._is_gui_available is now defined the same way on every platform, and now includes the Windows-specific check that had been in the Windows version of _is_gui_available and the OSX-specific check that was in runtktests.check_tk_availability. Also, every platform checks whether Tk can be instantiated (if the platform-specific checks passed).
* Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environmentSerhiy Storchaka2014-02-191-0/+46
| | | | variables names and values.
* Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-1/+1
|
* Fix test.test_support.bind_port() to not cause an error when Python wasGregory P. Smith2013-11-251-3/+9
| | | | | compiled on a system with SO_REUSEPORT defined in the headers but run on a system with an OS kernel that does not support that new socket option.
* Issue #17883: Backport test.test_support._is_gui_available()Zachary Ware2013-11-041-0/+34
| | | | This should stop the Windows buildbots from hanging on test_ttk_guionly.
* Issue #18643: Fix some test_socket failures due to large default socket bufferCharles-François Natali2013-08-291-2/+8
| | | | sizes.
* Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as ↵Antoine Pitrou2013-08-211-1/+6
| | | | possible, since "localhost" goes through a DNS lookup under recent Windows versions.
* #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-2/+2
|
* Issue #17835: Fix test_io when the default OS pipe buffer size is larger ↵Antoine Pitrou2013-04-241-0/+9
| | | | than one million bytes.
* Issue #12098 : Fix a missing import in the unittests.Kristján Valur Jónsson2013-03-201-0/+1
|
* Issue #12098: multiprocessing on Windows now starts child processesKristján Valur Jónsson2013-03-191-16/+1
| | | | | using the same sys.flags as the current process. Backport from default branch.
* Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-6/+7
| | | | with size >= 2**31), instead of producing illegal marshal data.
* Issue #16800: tempfile.gettempdir() no longer left temporary files whenSerhiy Storchaka2013-02-121-0/+27
| | | | the disk is full. Original patch by Amir Szekely.
* - Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-4/+10
| | | | --without-doc-strings option.
* Adapt test for build --without-doc-strings.Stefan Krah2013-01-261-0/+5
|
* Fix #15496. Add directory removal helpers to make Windows tests more ↵Brian Curtin2012-08-131-2/+66
| | | | reliable. Patch by Jeremy Kloth
* Issue #15467: Move helpers for __sizeof__ tests into test_support.Martin v. Löwis2012-07-291-0/+28
| | | | Patch by Serhiy Storchaka.
* Try to fix failure of a Windows buildbot to capture name resolution errors.Antoine Pitrou2012-06-251-0/+3
|
* Issue #8767: Restore building with --disable-unicode.Martin v. Löwis2012-05-201-1/+1
| | | | Original patch by Stefano Taschini.
* merge 2.6 with hash randomization fixBenjamin Peterson2012-02-211-2/+2
|\
| * - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEEDBarry Warsaw2012-02-211-1/+11
| | | | | | | | | | | | environment variable, to provide an opt-in way to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.
| * Merged revisions 78769,79049 via svnmerge fromEzio Melotti2010-08-021-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78769 | florent.xicluna | 2010-03-07 21:14:12 +0200 (Sun, 07 Mar 2010) | 2 lines Refresh the documentation for the test.test_support module. ........ r79049 | florent.xicluna | 2010-03-18 21:51:47 +0200 (Thu, 18 Mar 2010) | 2 lines #8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests. ........
| * Merged revisions 78815 via svnmerge fromEzio Melotti2010-08-021-4/+4
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78815 | florent.xicluna | 2010-03-09 21:57:01 +0200 (Tue, 09 Mar 2010) | 2 lines #7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag. ........
| * Merged revisions 78758 via svnmerge fromEzio Melotti2010-08-021-9/+90
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78758 | florent.xicluna | 2010-03-07 14:18:33 +0200 (Sun, 07 Mar 2010) | 4 lines Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings. ........
| * Revert r77730 and add back verify and vereq in case other projects use them, ↵Ezio Melotti2010-01-251-1/+25
| | | | | | | | but leave the changes in test_pprint and string_tests.
| * 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
| |