summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-97545: Make Semaphore run faster. (#97549)Cyker Way2022-09-261-2/+1
|
* bpo-38748: Add ctypes test for stack corruption due to misaligned arguments ↵Michael Curran2022-09-261-0/+13
| | | | (GH-26204)
* gh-96848: Fix -X int_max_str_digits option parsing (#96988)Victor Stinner2022-09-261-0/+2
| | | | | Fix command line parsing: reject "-X int_max_str_digits" option with no value (invalid) when the PYTHONINTMAXSTRDIGITS environment variable is set to a valid limit.
* Reject invalid opcode names in assertInBytecode (GH-97548)Dennis Sweeney2022-09-251-0/+2
|
* GH-78724: Initialize struct.Struct in __new__ (GH-94532)Kumar Aditya2022-09-251-0/+14
| | | | Closes https://github.com/python/cpython/issues/75960 Closes https://github.com/python/cpython/issues/78724
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Serhiy Storchaka2022-09-245-38/+38
|
* gh-94808: Coverage: Test uppercase string literal prefixes (GH-95925)Michael Droettboom2022-09-241-0/+7
|
* gh-77171: Fixes SubFormat check to compare the entire value. Add docs (GH-97509)Steve Dower2022-09-231-1/+1
|
* gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (#93222)Cyker Way2022-09-221-0/+100
| | | | | | | | | The main problem was that an unluckily timed task cancellation could cause the semaphore to be stuck. There were also doubts about strict FIFO ordering of tasks allowed to pass. The Semaphore implementation was rewritten to be more similar to Lock. Many tests for edge cases (including cancellation) were added.
* GH-96975: Skip incomplete frames in PyEval_GetFrame (GH-97003)Brandt Bucher2022-09-221-0/+3
|
* gh-96954: Add tests for unicodedata.name/lookup (#96955)Batuhan Taskaya2022-09-211-1/+9
| | | | | | | They were undertested, and since #96954 might involve a rewrite of this part of the code we want to ensure that there won't be any behavioral change. Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* gh-90808: add more examples to `test_sched.test_priority` (#31144)Nikita Sobolev2022-09-211-4/+17
|
* gh-95591: [Enum] use `_FlagTests` base class (GH-96475)Nikita Sobolev2022-09-201-4/+4
|
* GH-95921: Fix positions for some chained comparisons (GH-96968)Brandt Bucher2022-09-201-0/+25
|
* gh-96711: Enhance SystemError message upon Invalid opcode (#96712)serge-sans-paille2022-09-201-0/+11
| | | | | | Raise verbose SystemError instead of printing debug information upon Invalid opcode. Fix #96711
* gh-95865: Further reduce quote_from_bytes memory consumption (#96860)Gregory P. Smith2022-09-191-0/+4
| | | on large input values. Based on Dennis Sweeney's chunking idea.
* GH-96864: Check for error between line and opcode events (GH-96880)Brandt Bucher2022-09-191-0/+14
|
* Revert "gh-87079: Warn on unintended signal wakeup fd override in `asyncio` ↵Guido van Rossum2022-09-172-36/+3
| | | | | | | (#96807)" (#96898) This reverts commit 05878106989c6f5b9dd35a6c15a21bee59312827. Reason: This broke buildbots (some warnings added by that commit are turned to errors in the SSL buildbot). Repro: ./python Lib/test/ssltests.py
* gh-91210: Improve error message when non-default param follows default ↵Lysandros Nikolaou2022-09-172-12/+29
| | | | | | (GH-95933) - Improve error message when parameter without a default follows one with a default - Show same error message when positional-only params precede the default/non-default sequence
* gh-87079: Warn on unintended signal wakeup fd override in `asyncio` (#96807)Michel Hidalgo2022-09-172-3/+36
| | | Warn on loop initialization, when setting the wakeup fd disturbs a previously set wakeup fd, and on loop closing, when upon resetting the wakeup fd, we find it has been changed by someone else.
* gh-96052: codeop: fix handling compiler warnings in incomplete input (GH-96132)Serhiy Storchaka2022-09-161-0/+20
| | | | | | Previously codeop.compile_command() emitted compiler warnings (SyntaxWarning or DeprecationWarning) and raised a SyntaxError for incomplete input containing a potentially incorrect code. Now it always returns None for incomplete input without emitting any warnings.
* Fix ResourceWarning in test.test_frame (GH-96831)Dennis Sweeney2022-09-151-16/+19
|
* GH-91049: Introduce set vectorcall field API for PyFunctionObject (GH-92257)adphrost2022-09-151-0/+51
| | | | Co-authored-by: Andrew Frost <adfrost@fb.com> Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
* gh-96751: Remove dead code from `CALL_FUNCTION_EX` opcode (GH-96752)Nikita Sobolev2022-09-151-0/+21
|
* gh-77171 Support WAVE_FORMAT_EXTENSIBLE in the wave module (GH-96777)Yusuke Kadowaki2022-09-142-1/+29
| | | | | The test file, a modified version of Lib/test/audiodata/pluck-pcm24.wav, was provided by Andrea Celletti on the bug tracker. Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* gh-96784: Cover more typing special forms in `get_args()` (#96791)Nikita Sobolev2022-09-141-0/+27
|
* gh-96769: Cover more typing special forms to be unsubclassable (#96772)Nikita Sobolev2022-09-141-5/+43
|
* closes gh-96734: Update to Unicode 15.0.0. (GH-96809)Benjamin Peterson2022-09-131-3/+3
|
* gh-94808: improve comments and coverage of fastsearch.h (GH-96760)Dennis Sweeney2022-09-131-0/+48
|
* gh-87092: reduce redundancy and repetition in compiler's optimization stage ↵Irit Katriel2022-09-132-9/+20
| | | | (GH-96713)
* gh-95853: Multiple ops and debug for wasm_build.py (#96744)Christian Heimes2022-09-111-0/+1
|
* gh-90751: memoryview now supports half-float (#96738)Dong-hee Na2022-09-102-7/+22
| | | | Co-authored-by: Antoine Pitrou <antoine@python.org>
* gh-96710: Make the test timing more lenient for the int/str DoS regression ↵Gregory P. Smith2022-09-091-6/+8
| | | | | | | | | test. (#96717) A regression would still absolutely fail and even a flaky pass isn't harmful as it'd fail most of the time across our N system test runs. Windows has a low resolution timer and CI systems are prone to odd timing so this just gives more leeway to avoid flakiness.
* gh-96624: Fix test_dotted_but_module_not_loaded in testpatch.py (GH-96691)Dennis Sweeney2022-09-091-1/+1
| | | * Update test_dotted_but_module_not_loaded to reflect the move of unittest.test to test.test_unittest.
* GH-46412: More efficient bool() for ndbm/_gdbmmodule (#96692)Guido van Rossum2022-09-092-0/+28
|
* gh-96684: Silently suppress COM security errors in _wmi module (GH-96690)Steve Dower2022-09-081-4/+12
|
* gh-96465: Clear fractions hash lru_cache under refleak testing (GH-96689)Zachary Ware2022-09-081-0/+7
| | | Automerge-Triggered-By: GH:zware
* gh-92734: Add indentation feature to reprlib.Repr (GH-92735)finefoot2022-09-081-0/+334
|
* GH-96636: Remove all uses of NOTRACE_DISPATCH (GH-96643)Mark Shannon2022-09-081-0/+43
| | | Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-96352: Set AttributeError context in _PyObject_GenericGetAttrWithDict ↵philg3142022-09-081-0/+5
| | | | (#96353)
* gh-96268: Fix loading invalid UTF-8 (#96270)Michael Droettboom2022-09-071-3/+10
| | | | | This makes tokenizer.c:valid_utf8 match stringlib/codecs.h:decode_utf8. It also fixes an off-by-one error introduced in 3.10 for the line number when the tokenizer reports bad UTF8.
* gh-89545: Updates platform module to use new internal _wmi module on Windows ↵Steve Dower2022-09-074-13/+121
| | | | to directly query OS properties (GH-96289)
* gh-94808: Improve coverage of _PyBytes_FormatEx (GH-95895)Michael Droettboom2022-09-071-0/+18
| | | | | | | | There were two specific areas not covered: - %(name) syntax - %*s syntax Automerge-Triggered-By: GH:iritkatriel
* gh-96538: Fix refleak in _bisectmodule.c (gh-96619)Dennis Sweeney2022-09-061-0/+28
|
* gh-96611: Fix error message for invalid UTF-8 in mid-multiline string (#96623)Michael Droettboom2022-09-061-0/+12
|
* GH-96612: Skip incomplete frames in tracemalloc traces. (GH-96613)Mark Shannon2022-09-061-0/+14
|
* gh-96478: Fix new test when run in refleak mode (#96615)Jelle Zijlstra2022-09-061-12/+12
| | | | ./python.exe -m test -R : test.test_typing would fail, apparently because the dictionary used in the @patch decorator was modified.
* gh-96478: Test `@overload` on C functions (#96479)Nikita Sobolev2022-09-051-0/+14
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-93963: Remove ResourceReaderDefaultsTests (GH-96598)Jason R. Coombs2022-09-051-28/+0
| | | Automerge-Triggered-By: GH:jaraco
* gh-96559: Fixes Windows launcher handling of defaults using old-style tags, ↵Steve Dower2022-09-051-0/+7
| | | | and adds What's New section (GH-96595)