summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAXMartin Panter2015-11-201-6/+9
| | | | | | | | | | | | | | The underlying zlib library stores sizes in “unsigned int”. The corresponding Python parameters are all sizes of buffers filled in by zlib, so it is okay to reduce higher values to the UINT_MAX internal cap. OverflowError is still raised for sizes that do not fit in Py_ssize_t. Sizes are now limited to Py_ssize_t rather than unsigned long, because Python byte strings cannot be larger than Py_ssize_t. Previously this could result in a SystemError on 32-bit platforms. This resolves a regression in the gzip module when reading more than UINT_MAX or LONG_MAX bytes in one call, introduced by revision 62723172412c.
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\
| * 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 or edited some other way to fix the grammar.
* | Fix remaining tests and remove an unused import.Berker Peksag2015-05-061-1/+1
| |
* | Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-0/+244
| | | | | | | | Patch by Christie Wilson.
* | issue9859: Document test.support.detect_api_mismatch() and simplify its test.Gregory P. Smith2015-04-141-1/+1
| |
* | issue9859: Adds a test.support.detect_api_mismatch function useful toGregory P. Smith2015-04-141-1/+16
| | | | | | | | compare the public APIs of two modules or classes.
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-12/+8
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Skip nntplib tests when transient errors captured.Berker Peksag2015-04-081-0/+5
|\ \ | |/
| * Skip nntplib tests when transient errors captured.Berker Peksag2015-04-081-0/+5
| |
* | Escaped backslashes in docstrings.Serhiy Storchaka2015-04-031-3/+3
|\ \ | |/
| * Escaped backslashes in docstrings.Serhiy Storchaka2015-04-031-3/+3
| |
* | Issue #23799: Added test.support.start_threads() for running and cleaning upSerhiy Storchaka2015-04-011-1/+38
|\ \ | |/ | | | | multiple threads.
| * Issue #23799: Added test.support.start_threads() for running and cleaning upSerhiy Storchaka2015-04-011-1/+38
| | | | | | | | multiple threads.
* | Merge 3.4 (test.support)Victor Stinner2015-03-271-1/+1
|\ \ | |/
| * Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-OgVictor Stinner2015-03-271-1/+1
| | | | | | | | -Og does not optimize the C code, it's just "fast debugging".
* | Issue #22289: merge from 3.4Ned Deily2015-03-221-1/+2
|\ \ | |/
| * Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.Ned Deily2015-03-221-1/+2
| |
* | Issue #20876: correctly close temporary file in ↵Antoine Pitrou2015-03-071-10/+9
|\ \ | |/ | | | | test.support.fs_is_case_insensitive()
| * Issue #20876: correctly close temporary file in ↵Antoine Pitrou2015-03-071-10/+9
| | | | | | | | test.support.fs_is_case_insensitive()
* | Issue #23387: Skip test_issue16464 if it raises an 5xx error.Berker Peksag2015-03-021-0/+2
|\ \ | |/ | | | | | | Also, remove support.run_doctest() since there is no doctests in test_urllib2 and urllib.request.
| * Issue #23387: Skip test_issue16464 if it raises an 5xx error.Berker Peksag2015-03-021-0/+2
| | | | | | | | | | Also, remove support.run_doctest() since there is no doctests in test_urllib2 and urllib.request.
* | Issue 23314: SuppressCrashReports now disables CRT assertionsSteve Dower2015-02-231-0/+27
| | | | | | | | SuppressCrashReports should be used in test subprocesses that test invalid conditions.
* | Issue #17554: Print "fetching <url> ..." messages only in verbose mode.Berker Peksag2014-12-101-1/+2
|/ | | | Patch by Ezio Melotti.
* 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/+12
|
* Try to transfer the Unicode test data files gzipped.Georg Brandl2014-11-061-1/+6
|
* 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)
* Issue #22596: support.transient_internet() now also catchesBerker Peksag2014-10-251-0/+3
| | | | | | ConnectionRefusedError exceptions wrapped by urllib.error.URLError. This change should fix sporadic failures in test_urllib2net.
* Issue #22002: Make full use of test discovery in test sub-packages.Zachary Ware2014-07-231-1/+20
| | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
* Issue #19629: Add missing "import stat"Victor Stinner2014-07-211-12/+13
| | | | Sort also imports in support/__init__.py
* Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is aVictor Stinner2014-07-211-1/+7
| | | | directory, not os.path.isdir()
* Issue #18492: Allow all resources when tests are not run by regrtest.py.Zachary Ware2014-06-021-13/+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-041-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 tkinter.test.support.check_tk_availability. Also, every platform checks whether Tk can be instantiated (if the platform-specific checks passed).
* Issue #20667: KqueueEventLoopTests.test_read_pty_output() hangs also on ↵Victor Stinner2014-02-181-10/+0
| | | | OpenBSD 5.5.
* Issue #20667: test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() onVictor Stinner2014-02-181-0/+10
| | | | OpenBSD older than 5.5
* Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-1/+2
|\
| * Issue #20532: Tests which use _testcapi now are marked as CPython only.Serhiy Storchaka2014-02-071-1/+1
| |
* | Issue #18874: Implement the PEP 454 (tracemalloc)Victor Stinner2013-11-231-0/+19
| |
* | Issue #19718: Add a case-insensitive FS check to test.support to useBrett Cannon2013-11-221-1/+15
| | | | | | | | | | | | | | in test_pathlib. Purposefully designed to work from a specified directory in case multiple file systems are used on the system.
* | Fix test.support.bind_port() to not cause an error when Python was compiledGregory P. Smith2013-11-171-3/+9
|\ \ | |/ | | | | | | on a system with SO_REUSEPORT defined in the headers but run on a system with an OS kernel that does not support that reasonably new socket option.
| * Fix test.support.bind_port() to not cause an error when Python was compiledGregory P. Smith2013-11-171-3/+9
| | | | | | | | | | on a system with SO_REUSEPORT defined in the headers but run on a system with an OS kernel that does not support that reasonably new socket option.
* | test.support: considering the module is a mix of utilities unrelated with ↵Giampaolo Rodola'2013-11-121-18/+36
| | | | | | | | each other divide __all__ in sub-sections so that it can be used as a quick-reference doc
* | Mitigate #19412: restore test skips for --without-doc-stringsNick Coghlan2013-10-271-1/+6
| |
* | Issue #19330: Handle the no-docstrings case in testsNick Coghlan2013-10-261-3/+7
| |
* | Issue #18948: improve SuppressCoreFiles to include Windows crash popup ↵Antoine Pitrou2013-10-081-62/+62
| | | | | | | | | | | | suppression, and use it in more tests. Patch by Valerie Lambert and Zachary Ware.
* | Merge #18952 fix from 3.3Nick Coghlan2013-09-081-12/+19
|\ \ | |/
| * Close #18952: correctly download test support dataNick Coghlan2013-09-081-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | When test.support was converted to a package, it started silently skipping the tests which needed to download support data to run. This change refactors the affected code, and also tidies up test.support.findfile to remove the unused *here* parameter, document the *subdir* parameter and rename the *filename* parameter to avoid shadowing the file builtin and be consistent with the documentation. The unexpected skips were noticed and reported by Zachary Ware
| * Merge.Charles-François Natali2013-08-291-2/+8
| |\