summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43950: use 0-indexed column offsets for bytecode positions (GH-27011)Batuhan Taskaya2021-07-042-11/+11
|
* bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656)Irit Katriel2021-07-031-0/+15
|
* bpo-44129: Add descriptive global variables for general purpose bit flags ↵Daniel Hillier2021-07-031-1/+1
| | | | | | | | | | | (GH-26118) Replace hex flag masks with named global variables to improve readability. eg. if flags & 0x800 becomes: if flags & _MASK_UTF_FILENAME
* bpo-44553 : Implement GC methods for types.Union (GH-26993)Ken Jin2021-07-031-1/+19
|
* bpo-43950: Add code.co_positions (PEP 657) (GH-26955)Pablo Galindo2021-07-022-0/+197
| | | | | | | | | | | | | | | This PR is part of PEP 657 and augments the compiler to emit ending line numbers as well as starting and ending columns from the AST into compiled code objects. This allows bytecodes to be correlated to the exact source code ranges that generated them. This information is made available through the following public APIs: * The `co_positions` method on code objects. * The C API function `PyCode_Addr2Location`. Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341)finefoot2021-07-021-0/+10
| | | | Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
* bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor ↵Illia Volochii2021-07-011-4/+4
| | | | (GH-24540)
* bpo-43216: Remove @asyncio.coroutine (GH-26369)Illia Volochii2021-07-015-538/+64
| | | | | | | | | Remove the @asyncio.coroutine decorator enabling legacy generator-based coroutines to be compatible with async/await code; remove asyncio.coroutines.CoroWrapper used for wrapping legacy coroutine objects in the debug mode. The decorator has been deprecated since Python 3.8 and the removal was initially scheduled for Python 3.10.
* bpo-44313: generate LOAD_ATTR/CALL_FUNCTION for top-level imported objects ↵Batuhan Taskaya2021-06-301-0/+36
| | | | (GH-26677)
* bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and ↵Steve Dower2021-06-302-0/+32
| | | | marshal.dumps (GH-26961)
* bpo-44523: Remove the pass-through for hash() in weakref proxy objects ↵Pablo Galindo2021-06-291-4/+10
| | | | (GH-26950)
* bpo-44471: Change error type for bad objects in ExitStack.enter_context() ↵Serhiy Storchaka2021-06-292-2/+55
| | | | | | | | | (GH-26820) A TypeError is now raised instead of an AttributeError in ExitStack.enter_context() and AsyncExitStack.enter_async_context() for objects which do not support the context manager or asynchronous context manager protocols correspondingly.
* bpo-12022: Change error type for bad objects in "with" and "async with" ↵Serhiy Storchaka2021-06-293-8/+8
| | | | | | | | | (GH-26809) A TypeError is now raised instead of an AttributeError in "with" and "async with" statements for objects which do not support the context manager or asynchronous context manager protocols correspondingly.
* bpo-44110: Improve string's __getitem__ error message (GH-26042)Miguel Brito2021-06-272-2/+10
|
* bpo-44468: Never skip base classes in `typing.get_type_hints()`, even with ↵will-ca2021-06-261-7/+18
| | | | invalid `.__module__`. (GH-26862)
* bpo-43977: Properly update the tp_flags of existing subclasses when their ↵Brandt Bucher2021-06-251-23/+87
| | | | parents are registered (GH-26864)
* bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in ↵Irit Katriel2021-06-249-16/+51
| | | | tests (GH-26905)
* bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd ↵Barry Warsaw2021-06-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | import (#26882) * Issue a deprecation warning on smtpd import * Also issue DeprecationWarnings for asynchat and asyncore * Fix some tests * test___all__ requires the word 'module' or 'package' in the deprecation warning text, so add those to smtpd, asynchat, and asyncore. * In test_support, use pprint now instead of asyncore as the landmark. * Add What's New * Use ..deprecated:: * Use ..deprecated:: * Update Lib/smtpd.py Co-authored-by: Miro Hrončok <miro@hroncok.cz> * Update Doc/library/smtpd.rst Co-authored-by: Miro Hrončok <miro@hroncok.cz> * Import async{hat,ore} after the DeprecationWarning for this module Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-44456: Improve the syntax error when mixing keyword and positional ↵Pablo Galindo2021-06-241-0/+24
| | | | patterns (GH-26793)
* Make sure that line number is set correctly for call to __exit__ when ↵Mark Shannon2021-06-241-7/+24
| | | | handling exception in body of a with statement. (GH-26890)
* bpo-44229: Ignore spurious EPROTOTYPE on macOS in test_ssl (GH-26893)Erlend Egeberg Aasland2021-06-241-3/+8
|
* bpo-43693 Get rid of CO_NOFREE -- it's unused (GH-26839)Guido van Rossum2021-06-232-14/+10
| | | | | | All uses of this flag are either setting it or in doc or tests for it. So we should be able to get rid of it completely.
* bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874)Victor Stinner2021-06-231-3/+14
| | | | | Py_RunMain() now resets PyImport_Inittab to its initial value at exit. It must be possible to call PyImport_AppendInittab() or PyImport_ExtendInittab() at each Python initialization.
* bpo-28395: Remove unnecessary semicolons in tests (GH-26868)Dong-hee Na2021-06-238-31/+32
|
* bpo-44486: Make sure that modules always have a dictionary. (GH-26847)Mark Shannon2021-06-231-11/+2
| | | * Make sure that modules always have a dictionary.
* Fix typo in test_typing.py (GH-26853)Ikko Ashimine2021-06-221-1/+1
| | | maximium -> maximum
* bpo-44483: Fix crash in union object with bad ``__module__`` (GH-26848)Ken Jin2021-06-221-0/+9
|
* bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol ↵Ma Lin2021-06-223-0/+27
| | | | | | | correctly (GH-26764) No longer use len() to get the length of the input data. For some buffer protocol objects, the length obtained by using len() is wrong.
* bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)Victor Stinner2021-06-211-1/+2
| | | | | | | | Fix asyncio test_popen() of test_windows_utils by using a longer timeout. Use military grade battle-tested test.support.SHORT_TIMEOUT timeout rather than a hardcoded timeout of 10 seconds: it's 30 seconds by default, but it is made longer on slow buildbots. WaitForMultipleObjects() timeout argument is in milliseconds.
* Reset DeprecationWarning filters in test_typing io and re (#26811)Ken Jin2021-06-211-0/+2
|
* bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)Dong-hee Na2021-06-211-0/+7
|
* bpo-44466: Faulthandler now detects the GC (GH-26823)Victor Stinner2021-06-211-14/+53
| | | | The faulthandler module now detects if a fatal error occurs during a garbage collector collection (only if all_threads is true).
* bpo-44297: Fix missing line number in generator expressions (GH-26801)Mark Shannon2021-06-211-0/+15
| | | * Make sure that line number is set when entering comprehension scope in compiler.
* bpo-44469: Fix tests for "async with" with bad object (GH-26817)Serhiy Storchaka2021-06-211-6/+12
| | | | Test for execution of the body was null. It would pass even if the code which should be skipped was executed.
* bpo-38291: DeprecationWarning when importing typing.{io,re} (#26719)Sebastian Rittau2021-06-191-12/+17
|
* bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)Ethan Furman2021-06-182-20/+163
| | | | | | | | | | | | | | | | | | | | | * [Enum] reduce scope of new format behavior Instead of treating all Enums the same for format(), only user mixed-in enums will be affected. In other words, IntEnum and IntFlag will not be changing the format() behavior, due to the requirement that they be drop-in replacements of existing integer constants. If a user creates their own integer-based enum, then the new behavior will apply: class Grades(int, Enum): A = 5 B = 4 C = 3 D = 2 F = 0 Now: format(Grades.B) -> DeprecationWarning and '4' 3.12: -> no warning, and 'B'
* bpo-44451: Reset DeprecationWarning filters in ↵Miro Hrončok2021-06-181-0/+1
| | | | | | | | | | | | | | | | | test_importlib.test_entry_points_by_index (GH-26784) This avoids the following error if DeprecationWarnings are ignored. ====================================================================== ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) Prior versions of Distribution.entry_points would return a ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index expected = next(iter(caught)) StopIteration ---------------------------------------------------------------------- Ran 1402 tests in 2.125s FAILED (errors=1, skipped=18, expected failures=1)
* Reorganize the pattern matching suite (GH-26661)Brandt Bucher2021-06-181-548/+497
|
* bpo-44032: Move pointer to code object from frame-object to frame specials ↵Mark Shannon2021-06-181-1/+1
| | | | array. (GH-26771)
* bpo-43024: improve signature (in help, etc) for functions taking sent… ↵Irit Katriel2021-06-171-0/+16
| | | | | (GH-24331) …inel defaults
* Do not clear globals or builtins when calling clear() on a frame object. ↵Mark Shannon2021-06-171-0/+13
| | | | Reverts behavior to that of 3.10 and earlier. (GH-26768)
* bpo-44389: Fix typo in ssl deprecation warning message (GH-26754)Joe2021-06-171-1/+1
| | | `ssl.SSL_NO_TLS` should be `ssl.OP_NO_TLS`.
* bpo-44342: [Enum] sync current docs to 3.10 (GH-26750)Ethan Furman2021-06-161-2/+2
|
* bpo-43693: Eliminate unused "fast locals". (gh-26587)Eric Snow2021-06-151-21/+21
| | | | | Currently, if an arg value escapes (into the closure for an inner function) we end up allocating two indices in the fast locals even though only one gets used. Additionally, using the lower index would be better in some cases, such as with no-arg `super()`. To address this, we update the compiler to fix the offsets so each variable only gets one "fast local". As a consequence, now some cell offsets are interspersed with the locals (only when an arg escapes to an inner function). https://bugs.python.org/issue43693
* [Enum] improve test, add andrei kulakov to ACKS (GH-26726)Ethan Furman2021-06-151-0/+23
|
* bpo-44409: Fix error location in tokenizer errors that happen during ↵Pablo Galindo2021-06-141-0/+1
| | | | initialization (GH-26712)
* bpo-44389: Fix deprecation of OP_NO_TLSv1_3 (GH-26700)Christian Heimes2021-06-131-8/+56
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Fix typos in multiple files (GH-26689)Binbin2021-06-131-1/+1
| | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43425: Update test_c_parser not to use TempdirManager (GH-26693)Dong-hee Na2021-06-121-5/+8
|
* bpo-44396: Update multi-line-start location when reallocating tokenizer ↵Pablo Galindo2021-06-121-0/+7
| | | | | buffers (GH-26676) Automerge-Triggered-By: GH:pablogsal