summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #24541: Update comment in test_inspect.test_eightteenYury Selivanov2015-07-011-1/+1
|
* Issue #24400: Fix failing unittestYury Selivanov2015-07-011-1/+1
|
* Issue #24400: Remove inspect.isawaitable().Yury Selivanov2015-06-301-25/+0
| | | | | | isawaitable() was added before collections.abc.Awaitable; now, with Awaitable, it is no longer needed (we don't have ishashable() or isiterable() methods in the inspect module either).
* test_coroutines: remove whitespaceYury Selivanov2015-06-301-1/+1
|
* Issue #24528: Improve error message for awaits in comprehensionsYury Selivanov2015-06-301-0/+10
|
* Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.Serhiy Storchaka2015-06-291-0/+41
|\ | | | | | | | | | | | | A deprecation warning no longer issued by XMLParser subclass with default doctype() method. Direct call of doctype() now issues a warning. Parser's doctype() now is not called if target's doctype() is called. Based on patch by Martin Panter.
| * Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree.Serhiy Storchaka2015-06-291-0/+41
| | | | | | | | | | | | | | A deprecation warning no longer issued by XMLParser subclass with default doctype() method. Direct call of doctype() now issues a warning. Parser's doctype() now is not called if target's doctype() is called. Based on patch by Martin Panter.
* | Issue #24467: Fixed possible buffer over-read in bytearray. The bytearraySerhiy Storchaka2015-06-291-1/+18
|\ \ | |/ | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated.
| * Issue #24467: Fixed possible buffer over-read in bytearray. The bytearraySerhiy Storchaka2015-06-291-1/+18
| | | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated.
* | Issue #20387: Merge test and patch from 3.4.4Jason R. Coombs2015-06-281-1/+20
|\ \ | |/
| * Issue #20387: MergeJason R. Coombs2015-06-281-1/+20
| |\
| | * Issue #20387: Merge patch and testJason R. Coombs2015-06-281-1/+20
| | |\
| | | * Issue #20387: Correct test to properly capture expectation.Jason R. Coombs2015-06-261-2/+2
| | | |
| | | * Issue #20387: Add test capturing failure to roundtrip indented code in ↵Jason R. Coombs2015-06-201-0/+17
| | | | | | | | | | | | | | | | tokenize module.
| | | * Remove unused import and remove doctest-only import into doctests.Jason R. Coombs2015-06-201-1/+3
| | | |
* | | | Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-0/+10
|\ \ \ \ | |/ / / | | | | | | | | functions of the audioop module.
| * | | Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()Serhiy Storchaka2015-06-281-0/+10
| |/ / | | | | | | | | | functions of the audioop module.
* | | Issue #24336: The contextmanager decorator now works with functions withSerhiy Storchaka2015-06-282-3/+11
|\ \ \ | |/ / | | | | | | keyword arguments called "func" and "self". Patch by Martin Panter.
| * | Issue #24336: The contextmanager decorator now works with functions withSerhiy Storchaka2015-06-282-3/+11
| | | | | | | | | | | | keyword arguments called "func" and "self". Patch by Martin Panter.
* | | upgrade to Unicode 8.0.0Benjamin Peterson2015-06-271-2/+2
| | |
* | | Issue #23684: Clarify the return value of the scheme attribute of ↵Berker Peksag2015-06-251-0/+41
|\ \ \ | |/ / | | | | | | | | | | | | ParseResult and SplitResult objects. Patch by Martin Panter.
| * | Issue #23684: Clarify the return value of the scheme attribute of ↵Berker Peksag2015-06-251-0/+41
| | | | | | | | | | | | | | | | | | ParseResult and SplitResult objects. Patch by Martin Panter.
* | | Issue #24400, #24325: More tests for types._GeneratorWrapperYury Selivanov2015-06-241-2/+20
| | | | | | | | | | | | Also, make 'wrapped' and 'isgen' private.
* | | Issue #24325, #24400: Add more unittests for types.coroutine; tweak wrapper ↵Yury Selivanov2015-06-242-31/+194
| | | | | | | | | | | | implementation.
* | | Issue #24495, #24400: Test asyncio.Task.repr in debug modeYury Selivanov2015-06-241-0/+7
| | |
* | | Fix asyncio unittests in debug modeYury Selivanov2015-06-241-1/+1
|\ \ \ | |/ /
* | | Issue #24400: Fix CoroWrapper for 'async def' coroutinesYury Selivanov2015-06-242-2/+26
|\ \ \ | |/ /
| * | Issue #24400: Fix CoroWrapper for 'async def' coroutinesYury Selivanov2015-06-241-1/+2
| | |
* | | Closes #24244: Removes invalid test from test_timeSteve Dower2015-06-241-7/+0
| | |
* | | Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar().Antoine Pitrou2015-06-231-10/+41
|\ \ \ | |/ /
| * | Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar().Antoine Pitrou2015-06-231-10/+41
| |/
| * Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+210
| | | | | | | | | | | | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code
* | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-223-23/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: 1. Coroutines now have a distinct, separate from generators type at the C level: PyGen_Type, and a new typedef PyCoroObject. PyCoroObject shares the initial segment of struct layout with PyGenObject, making it possible to reuse existing generators machinery. The new type is exposed as 'types.CoroutineType'. As a consequence of having a new type, CO_GENERATOR flag is no longer applied to coroutines. 2. Having a separate type for coroutines made it possible to add an __await__ method to the type. Although it is not used by the interpreter (see details on that below), it makes coroutines naturally (without using __instancecheck__) conform to collections.abc.Coroutine and collections.abc.Awaitable ABCs. [The __instancecheck__ is still used for generator-based coroutines, as we don't want to add __await__ for generators.] 3. Add new opcode: GET_YIELD_FROM_ITER. The opcode is needed to allow passing native coroutines to the YIELD_FROM opcode. Before this change, 'yield from o' expression was compiled to: (o) GET_ITER LOAD_CONST YIELD_FROM Now, we use GET_YIELD_FROM_ITER instead of GET_ITER. The reason for adding a new opcode is that GET_ITER is used in some contexts (such as 'for .. in' loops) where passing a coroutine object is invalid. 4. Add two new introspection functions to the inspec module: getcoroutinestate(c) and getcoroutinelocals(c). 5. inspect.iscoroutine(o) is updated to test if 'o' is a native coroutine object. Before this commit it used abc.Coroutine, and it was requested to update inspect.isgenerator(o) to use abc.Generator; it was decided, however, that inspect functions should really be tailored for checking for native types. 6. sys.set_coroutine_wrapper(w) API is updated to work with only native coroutines. Since types.coroutine decorator supports any type of callables now, it would be confusing that it does not work for all types of coroutines. 7. Exceptions logic in generators C implementation was updated to raise clearer messages for coroutines: Before: TypeError("generator raised StopIteration") After: TypeError("coroutine raised StopIteration")
* | (Merge 3.4) Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+209
| | | | | | | | | | | | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code
* | Issue #24299: Fixed test__locale on Solaris.Serhiy Storchaka2015-06-081-2/+3
|\ \ | |/
| * Issue #24299: Fixed test__locale on Solaris.Serhiy Storchaka2015-06-081-2/+3
| |
* | Issue #14373: Other attempt to fix threaded test for lru_cache().Serhiy Storchaka2015-06-081-6/+11
| |
* | Issue #14373: C implementation of functools.lru_cache() now can be used withSerhiy Storchaka2015-06-081-0/+31
| | | | | | | | methods.
* | Issue #14373: Fixed threaded test for lru_cache(). Added new threaded test.Serhiy Storchaka2015-06-081-14/+47
| |
* | Issue 24374: Plug refleak in set_coroutine_wrapperYury Selivanov2015-06-041-2/+2
| |
* | Issue #24369: Defend against key-changes during iteration.Eric Snow2015-06-041-0/+17
| |
* | Issue #24368: Support keyword arguments in OrderedDict methods.Eric Snow2015-06-031-1/+15
| |
* | Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefullyYury Selivanov2015-06-021-0/+20
| |
* | Merge the fix for #24267Donald Stufft2015-06-021-5/+20
|\ \ | |/
| * Closes #24267 - Does not check version on ensurepip uninstallDonald Stufft2015-06-021-5/+20
| | | | | | | | | | | | Ensure that the uninstall helper for Windows passes the proper flags to pip to prevent it from checking PyPI if the pip that we're currently attempting to uninstall is the latest verison.
* | Issue #24359: Check for changed OrderedDict size during iteration.Eric Snow2015-06-021-4/+0
| |
* | Issue #24348: Drop superfluous increfs/decrefs.Eric Snow2015-06-021-0/+12
| |
* | Issue #24347: Set KeyError if PyDict_GetItemWithError returns NULL.Eric Snow2015-06-021-0/+18
| |
* | Issue 24017: Add a test for CoroWrapper and 'async def' coroutinesYury Selivanov2015-06-011-0/+14
| |
* | Issue #19543: Implementation of isclose as per PEP 485Tal Einat2015-05-312-0/+163
| | | | | | | | | | | | | | | | | | For details, see: PEP 0485 -- A Function for testing approximate equality Functions added: math.isclose() and cmath.isclose(). Original code by Chris Barker. Patch by Tal Einat.