Commit Graph

223 Commits

Author SHA1 Message Date
Terry Jan Reedy
ef2020f634 Issue #27918# test.resource.is_gui_available no longer flashes tk window.
Also, don't run it if 'gui' is not requested.  Patch by Xiang Zhang.
2016-09-05 00:01:28 -04:00
Martin Panter
b362f75f6e Issue #25523: Correct "a" article to "an" article
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.
2015-11-02 03:37:02 +00:00
Serhiy Storchaka
14a7d6389f Issue #26494: Fixed crash on iterating exhausting iterators.
Affected classes are generic sequence iterators, iterators of bytearray,
list, tuple, set, frozenset, dict, OrderedDict and corresponding views.
2016-03-30 20:43:06 +03:00
Serhiy Storchaka
ab68fcaee3 Issue #6478: _strptime's regexp cache now is reset after changing timezone
with time.tzset().
2015-12-03 22:20:45 +02:00
Serhiy Storchaka
f29ab72162 Don't encode unicode dirname in test_support.temp_cwd() if unicode file names
are supported by the filesystem.  On Windows the encoding can convert some
characters to '?' that is not legal in file name.
2015-09-09 12:18:36 +03:00
Serhiy Storchaka
7c7b4b5d86 Backport support.change_cwd() and use it in tests. 2015-09-06 14:16:18 +03:00
Serhiy Storchaka
bd8c629eb5 Issue #23799: Added test.test_support.start_threads() for running and
cleaning up multiple threads.
2015-04-01 12:56:39 +03:00
Ned Deily
9e52735d22 Issue #23458: Skip test_urandom_fd_non_inheritable on OS X 10.4 since
FD_CLOEXEC is not supported there.
2015-03-17 15:18:07 -07:00
Benjamin Peterson
f7363ed8ef use more ugly but hopefully more robust method 2014-11-25 16:12:32 -06:00
Benjamin Peterson
69a64d3fc2 handle errors without a reason attribute 2014-11-25 15:43:58 -06:00
Benjamin Peterson
f671de4dd4 don't fail tests when www.python.org can't be validated by the system 2014-11-25 15:16:55 -06:00
Ned Deily
33db23f53c Issue #22770: Prevent some Tk segfaults on OS X when running gui tests.
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)
2014-11-01 19:26:45 -07:00
Benjamin Peterson
68482fb53b expect socket.error instead of the py3ism OSError 2014-08-20 14:51:11 -05:00
Benjamin Peterson
daeb925cc8 backport many ssl features from Python 3 (closes #21308)
A contribution of Alex Gaynor and David Reid with the generous support of
Rackspace. May God have mercy on their souls.
2014-08-20 14:14:50 -05:00
Serhiy Storchaka
fdfe9fce8c Add helpers for testing unicode disabled builds. 2014-07-16 23:50:37 +03:00
Zachary Ware
9ce635f7bd Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:16 -05:00
Ned Deily
47e4b0bedb Issue #18604: Skip the Tk instantiation test on OS X because it can
cause GUI tests to segfault in Cocoa Tk when run under regrtest -j
(multiple threads running subprocesses).
2014-05-23 21:28:02 -07:00
Zachary Ware
2460dc880f Issue #18604: Consolidated checks for GUI availability.
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).
2014-05-02 10:33:49 -05:00
Serhiy Storchaka
2ac9d31108 Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environment
variables names and values.
2014-02-19 23:27:37 +02:00
Serhiy Storchaka
76249ea4a7 Issue #20532: Tests which use _testcapi now are marked as CPython only. 2014-02-07 10:06:05 +02:00
Gregory P. Smith
d82634d606 Fix test.test_support.bind_port() to not cause an error when Python was
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.
2013-11-24 19:42:15 -08:00
Zachary Ware
14b38f58c2 Issue #17883: Backport test.test_support._is_gui_available()
This should stop the Windows buildbots from hanging on test_ttk_guionly.
2013-11-03 22:27:04 -06:00
Charles-François Natali
5aac8b7c2c Issue #18643: Fix some test_socket failures due to large default socket buffer
sizes.
2013-08-29 19:00:30 +02:00
Antoine Pitrou
78254dc6fc Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions. 2013-08-22 00:39:46 +02:00
Ezio Melotti
5dd99ebbc2 #18741: fix more typos. Patch by Févry Thibault. 2013-08-17 16:07:38 +03:00