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
Antoine Pitrou
68915d7510
Issue #17835 : Fix test_io when the default OS pipe buffer size is larger than one million bytes.
2013-04-24 23:31:38 +02:00
Kristján Valur Jónsson
acb6e85808
Issue #12098 : Fix a missing import in the unittests.
2013-03-19 17:30:30 -07:00
Kristján Valur Jónsson
8927e8f421
Issue #12098 : multiprocessing on Windows now starts child processes
...
using the same sys.flags as the current process.
Backport from default branch.
2013-03-19 15:07:35 -07:00
Serhiy Storchaka
34fe1b7a3d
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
...
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:07:43 +02:00
Serhiy Storchaka
0127de0b87
Issue #16800 : tempfile.gettempdir() no longer left temporary files when
...
the disk is full. Original patch by Amir Szekely.
2013-02-13 00:34:46 +02:00
Serhiy Storchaka
72121c6c30
- Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings option.
2013-01-27 19:45:49 +02:00
Stefan Krah
4216aa1e52
Adapt test for build --without-doc-strings.
2013-01-26 13:31:44 +01:00
Brian Curtin
bc77d3690b
Fix #15496 . Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
2012-08-13 17:26:48 -05:00
Martin v. Löwis
c02e1e65c4
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:30:50 +02:00
Antoine Pitrou
ed04f42b99
Try to fix failure of a Windows buildbot to capture name resolution errors.
2012-06-26 00:48:59 +02:00
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
...
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Benjamin Peterson
aee9dfba4a
merge 2.6 with hash randomization fix
2012-02-20 21:44:56 -05:00
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
...
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.
2012-02-20 20:42:21 -05:00
Charles-François Natali
97c9428c91
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:02 +01:00
Antoine Pitrou
4a4a0fed07
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Victor Stinner
e9b185f263
Issue #12085 : Fix test_subprocess for my previous commit
...
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Ezio Melotti
4dcb7be696
#7960 : fix docstrings for captured_output and captured_stdout.
2011-05-14 08:19:43 +03:00
Ezio Melotti
e3992eb743
#5723 : Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
Ezio Melotti
720f8dea19
Change import_fresh_module to work with packages.
2011-05-14 06:02:25 +03:00
Ezio Melotti
193c34ba86
#11910 : change import_fresh_module to return None when one of the "fresh" modules can not be imported.
2011-05-09 06:28:42 +03:00
Benjamin Peterson
01c9a16031
import_fresh_module ought to be in __all__
2011-05-08 15:32:04 -05:00
Antoine Pitrou
d43245a965
Merged revisions 87861,87863 via svnmerge from
...
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().
........
2011-01-08 10:32:51 +00:00
Antoine Pitrou
91ce0d933c
Merged revisions 87695 via svnmerge from
...
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.
........
2011-01-03 18:45:09 +00:00
Antoine Pitrou
d989f820c8
Merged revisions 85482 via svnmerge from
...
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.
........
2010-10-14 15:43:25 +00:00
Antoine Pitrou
a2a53b27d3
Add support for "-3" flag ( closes #7516 )
2010-10-14 11:18:46 +00:00
Antoine Pitrou
a226c9100d
Merged revisions 85469 via svnmerge from
...
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
........
2010-10-14 11:15:50 +00:00
Victor Stinner
cc676a0d7f
Recorded merge of revisions 83987 via svnmerge from
...
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
........
2010-09-10 11:24:10 +00:00
Antoine Pitrou
286b8332d9
Merged revisions 84604 via svnmerge from
...
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
........
2010-09-07 21:46:05 +00:00
Antoine Pitrou
c818ed4d61
Merged revisions 84597-84599 via svnmerge from
...
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 .
........
2010-09-07 21:40:25 +00:00