summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30207: Rename test.test_support to test.support. (#1353)Serhiy Storchaka2017-04-301-1756/+2
| | | | | | | | To simplify backports from Python 3, the test.test_support module was converted into a package and renamed to test.support. The test.script_helper module was moved into the test.support package. Names test.test_support and test.script_helper are left as aliases to test.support and test.support.script_helper.
* [2.7] bpo-30197: Enhance swap_attr() and backport swap_item() in ↵Serhiy Storchaka2017-04-281-2/+37
| | | | | | test.test_support. (#1341) (#1347) (cherry picked from commit d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83)
* Issue #19542: Fix bugs in WeakValueDictionary.setdefault() and ↵Antoine Pitrou2016-12-191-0/+10
| | | | | | | | WeakValueDictionary.pop() when a GC collection happens in another thread. Original patch and report by Armin Rigo.
* Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests.Serhiy Storchaka2016-12-031-2/+2
|
* Issue #28666: Fix stat importMartin Panter2016-11-201-1/+1
|
* Issue #28666: Fix removing readonly directories on Windows.Serhiy Storchaka2016-11-201-1/+1
|
* Issue #28666: Now test.test_support.rmtree is able to remove unwritable orSerhiy Storchaka2016-11-201-15/+16
| | | | unreadable directories on Windows too.
* Issue #28666: Now test.support.rmtree is able to remove unwritable orSerhiy Storchaka2016-11-201-1/+32
| | | | unreadable directories.
* Issue #27918# test.resource.is_gui_available no longer flashes tk window.Terry Jan Reedy2016-09-051-2/+3
| | | | Also, don't run it if 'gui' is not requested. Patch by Xiang Zhang.
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed to fix the grammar.
* Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-0/+18
| | | | | Affected classes are generic sequence iterators, iterators of bytearray, list, tuple, set, frozenset, dict, OrderedDict and corresponding views.
* Issue #6478: _strptime's regexp cache now is reset after changing timezoneSerhiy Storchaka2015-12-031-1/+34
| | | | with time.tzset().
* Don't encode unicode dirname in test_support.temp_cwd() if unicode file namesSerhiy Storchaka2015-09-091-1/+2
| | | | | are supported by the filesystem. On Windows the encoding can convert some characters to '?' that is not legal in file name.
* Backport support.change_cwd() and use it in tests.Serhiy Storchaka2015-09-061-0/+27
|
* Issue #23799: Added test.test_support.start_threads() for running andSerhiy Storchaka2015-04-011-1/+34
| | | | cleaning up multiple threads.
* Issue #23458: Skip test_urandom_fd_non_inheritable on OS X 10.4 sinceNed Deily2015-03-171-1/+29
| | | | FD_CLOEXEC is not supported there.
* 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.