summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
Commit message (Collapse)AuthorAgeFilesLines
* use more ugly but hopefully more robust methodBenjamin Peterson2014-11-251-1/+1
|
* handle errors without a reason attributeBenjamin Peterson2014-11-251-1/+1
|
* don't fail tests when www.python.org can't be validated by the systemBenjamin Peterson2014-11-251-0/+13
|
* Issue #22770: Prevent some Tk segfaults on OS X when running gui tests.Ned Deily2014-11-021-3/+2
| | | | | | | When running tests in subprocesses with the regrtest -j option, a bug in Cocoa Tk can result in a Tcl segfault. Avoid the problem by forcing Tk to fully initialize as an OS X gui process before destroying the Tcl instance and creating another. (Original patch by Serhiy Storchaka)
* expect socket.error instead of the py3ism OSErrorBenjamin Peterson2014-08-201-1/+1
|
* backport many ssl features from Python 3 (closes #21308)Benjamin Peterson2014-08-201-1/+18
| | | | | A contribution of Alex Gaynor and David Reid with the generous support of Rackspace. May God have mercy on their souls.
* Add helpers for testing unicode disabled builds.Serhiy Storchaka2014-07-161-1/+6
|
* Issue #18492: Allow all resources when tests are not run by regrtest.py.Zachary Ware2014-06-021-11/+7
| | | | This changeset also includes cleanup allowed by this behavior change.
* Issue #18604: Skip the Tk instantiation test on OS X because it canNed Deily2014-05-241-1/+3
| | | | | cause GUI tests to segfault in Cocoa Tk when run under regrtest -j (multiple threads running subprocesses).
* 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. ........