summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-4/+13
| | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* 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/+2
| |
* | Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* | Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-3/+3
| | | | | | | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* | Fix inspect.signature tests for builtins when docstrings are compiled out.Larry Hastings2013-11-241-0/+3
| |
* | Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-0/+29
| | | | | | | | for some builtins.
* | Issue #18874: Implement the PEP 454 (tracemalloc)Victor Stinner2013-11-231-1/+1
| |
* | Issue #19440: Clean up test_capiZachary Ware2013-11-121-14/+8
|\ \ | |/
| * Issue #19440: Clean up test_capiZachary Ware2013-11-121-13/+7
| |
* | Close #19439: execute embedding tests on WindowsNick Coghlan2013-11-031-32/+46
| | | | | | | | Patch by Zachary Ware
* | Issue #16129: this should appease the buildbotsNick Coghlan2013-10-181-8/+7
| |
* | Skip #16129 test until I debug cross-platform issuesNick Coghlan2013-10-171-0/+1
| |
* | Try to debug overspecified test :(Nick Coghlan2013-10-171-1/+2
| |
* | Issue #16129: Add `Py_SetStandardStreamEncoding`Nick Coghlan2013-10-171-25/+71
| | | | | | | | | | | | | | | | | | | | | | This new pre-initialization API allows embedding applications like Blender to force a particular encoding and error handler for the standard IO streams. Also refactors Modules/_testembed.c to let us start testing multiple embedding scenarios. (Initial patch by Bastien Montagne)
* | Issue #18948: improve SuppressCoreFiles to include Windows crash popup ↵Antoine Pitrou2013-10-081-1/+1
| | | | | | | | | | | | suppression, and use it in more tests. Patch by Valerie Lambert and Zachary Ware.
* | test_capi: make a specific test case for the subinterpreter testAntoine Pitrou2013-08-011-1/+6
|/ | | | (it was wrongly classified in the pending calls test case)
* Fix indentation.Ezio Melotti2013-03-051-4/+4
|
* #11732: add a new suppress_crash_popup() context manager to test.support.Ezio Melotti2013-03-051-1/+2
|
* #17249: merge with 3.2.Ezio Melotti2013-02-231-28/+27
|\
| * #17249: convert a test in test_capi to use unittest and reap threads.Ezio Melotti2013-02-231-28/+28
| |
* | Remove outdated statementAntoine Pitrou2013-01-171-1/+0
|\ \ | |/
| * Remove outdated statementAntoine Pitrou2013-01-171-1/+0
| |
* | Closes #16126: PyErr_Format format mismatch in _testcapimodule.cJesus Cea2012-10-041-0/+11
| |
* | Merge 3.2.Stefan Krah2012-08-211-0/+8
|\ \ | |/
| * Issue #15736: Fix overflow in _PySequence_BytesToCharpArray().Stefan Krah2012-08-211-0/+8
| |
* | Merge 3.2.Stefan Krah2012-08-201-0/+10
|\ \ | |/
| * Issue #15738: Fix a missing NULL check in subprocess_fork_exec().Stefan Krah2012-08-201-0/+10
| |
* | Merge 3.2.Stefan Krah2012-08-201-0/+13
|\ \ | |/
| * Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().Stefan Krah2012-08-201-0/+13
| | | | | | | | Found by Coverity.
* | Issue #14769: Incorporated mildly pedantic feedback from python-dev.Larry Hastings2012-06-221-19/+21
| | | | | | | | | | Mostly documentation changes; the code changes are clarifications, not semantic changes.
* | Issue #14769: test_capi now has SkipitemTest, which cleverly checksLarry Hastings2012-06-221-1/+70
| | | | | | | | | | for "parity" between PyArg_ParseTuple() and the Python/getargs.c static function skipitem() for all possible "format units".
* | Issue #9116: Allowed test to pass on Windows by adjusting the test condition ↵Vinay Sajip2012-05-061-2/+2
| | | | | | | | slightly to allow for a Windows-specific error message.
* | Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo.Martin v. Löwis2012-04-191-0/+23
| | | | | | | | Patch by Stefan Behnel.
* | Test running of code in a sub-interpreterAntoine Pitrou2012-01-171-0/+17
|\ \ | |/ | | | | (prelude to issue #6531).
| * Test running of code in a sub-interpreterAntoine Pitrou2012-01-171-0/+17
| | | | | | | | (prelude to issue #6531).
* | Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.Antoine Pitrou2011-06-301-0/+3
|\ \ | |/
| * Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.Antoine Pitrou2011-06-301-0/+3
| |
* | Close #12028: Make threading._get_ident() public, rename it toVictor Stinner2011-05-301-3/+2
|/ | | | | threading.get_ident() and document it. This function was used by _thread.get_ident().
* Issue #10914: Add a minimal embedding test to test_capi.Antoine Pitrou2011-04-251-3/+32
|
* #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | Merged revisions 88550 via svnmerge fromAntoine Pitrou2011-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with a buffer struct having a NULL data pointer. ........
* | Issue #8932: Skip required when compiled --without-threads.Stefan Krah2010-06-091-0/+1
| |
* | Fix test_capi for Windows: strip newline charactersVictor Stinner2010-05-151-2/+2
| | | | | | | | Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
* | Make PyErr_Occurred return NULL if there is no current thread. Previously itJeffrey Yasskin2010-05-131-1/+15
| | | | | | | | | | | | | | would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite recursion. Fixes issue 3605.
* | Merged revisions 80552-80556,80564-80566,80568-80571 via svnmerge fromVictor Stinner2010-04-281-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80552 | victor.stinner | 2010-04-27 23:46:03 +0200 (mar., 27 avril 2010) | 3 lines Issue #7449, part 1: fix test_support.py for Python compiled without thread ........ r80553 | victor.stinner | 2010-04-27 23:47:01 +0200 (mar., 27 avril 2010) | 1 line Issue #7449, part 2: regrtest.py -j option requires thread support ........ r80554 | victor.stinner | 2010-04-27 23:51:26 +0200 (mar., 27 avril 2010) | 9 lines Issue #7449 part 3, test_doctest: import trace module in test_coverage() Import trace module fail if the threading module is missing. test_coverage() is only used if test_doctest.py is used with the -c option. This commit allows to execute the test suite without thread support. Move "import trace" in test_coverage() and use test_support.import_module('trace'). ........ r80555 | victor.stinner | 2010-04-27 23:56:26 +0200 (mar., 27 avril 2010) | 6 lines Issue #7449, part 4: skip test_multiprocessing if thread support is disabled import threading after _multiprocessing to raise a more revelant error message: "No module named _multiprocessing". _multiprocessing is not compiled without thread support. ........ r80556 | victor.stinner | 2010-04-28 00:01:24 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py * Split Test.test_open() in 2 functions: test_open() and test_thread_open() * Skip test_open() and test_thread_open() if we are unable to find the C library * Skip test_thread_open() if thread support is disabled * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError() ........ r80564 | victor.stinner | 2010-04-28 00:59:35 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 6: fix test_hashlib for missing threading module Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing(). ........ r80565 | victor.stinner | 2010-04-28 01:01:29 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 7: simplify threading detection in test_capi * Skip TestPendingCalls if threading module is missing * Test if threading module is present or not, instead of test the presence of _testcapi._test_thread_state ........ r80566 | victor.stinner | 2010-04-28 01:03:16 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing TestFifo can be executed without the threading module ........ r80568 | victor.stinner | 2010-04-28 01:14:58 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 9: fix test_xmlrpclib for missing threading module * Skip testcases using threads if threading module is missing * Use "http://" instead of URL in ServerProxyTestCase if threading is missing because URL is not set in this case ........ r80569 | victor.stinner | 2010-04-28 01:33:58 +0200 (mer., 28 avril 2010) | 6 lines Partial revert of r80556 (Issue #7449, part 5, fix ctypes test) Rewrite r80556: the thread test have to be executed just after the test on libc_open() and so the test cannot be splitted in two functions (without duplicating code, and I don't want to duplicate code). ........ r80570 | victor.stinner | 2010-04-28 01:51:16 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 10: test_cmd imports trace module using test_support.import_module() Use test_support.import_module() instead of import to raise a SkipTest exception if the import fail. Import trace fails if the threading module is missing. See also part 3: test_doctest: import trace module in test_coverage(). ........ r80571 | victor.stinner | 2010-04-28 01:55:59 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, last part (11): fix many tests if thread support is disabled * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads ........
* | convert old fail* assertions to assert*Benjamin Peterson2009-06-301-2/+2
|/
* Issue #6012: Add cleanup support to O& argument parsing.Martin v. Löwis2009-05-291-1/+5
|