summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Python 3.10.0rc1v3.10.0rc1Pablo Galindo2021-08-021-1/+1
|
* bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565)Miss Islington (bot)2021-08-021-0/+12
| | | | | (cherry picked from commit 28b6dc9dd5d1ce6f8aff7e06d4ef9afdc2bc8332) Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
* bpo-44785: Silence deprecation warnings in test_pickle (GH-27538)Miss Islington (bot)2021-08-021-1/+5
| | | | | (cherry picked from commit 36d952d228582b0ffc7a86c520d4ddbe8943d803) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)Miss Islington (bot)2021-08-021-0/+36
| | | | | | | Non-protocol subclasses of protocol ignore now the __init__ method inherited from protocol base classes. (cherry picked from commit 043cd60abed09edddc7185bcf7d039771acc734d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44808: Fix test_inspect in refleak mode (GH-27544)Miss Islington (bot)2021-08-021-1/+2
| | | | | (cherry picked from commit 626d397cc1612ea5eef153dd910834c2ee00ddbd) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44667: Treat correctly lines ending with comments and no newlines in the ↵Miss Islington (bot)2021-08-021-0/+10
| | | | | | | Python tokenizer (GH-27499) (GH-27500) (cherry picked from commit b6bde9fc42aecad5be0457198d17cfe7b481ad79) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44793: Fix checking the number of arguments when subscribe a generic ↵Miss Islington (bot)2021-08-021-2/+4
| | | | | | | | | | | type with ParamSpec parameter. (GH-27515) For example Callable[P, T][[int], str, float] will now raise an error. Use also term "arguments" instead of "parameters" in error message for too few/many arguments. (cherry picked from commit f92b9133ef67e77605cbd315b6b6c81036ce110e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508) (#27510)Miss Islington (bot)2021-08-011-6/+12
| | | | | | | | | | Addressing issues with tests under error on warnings. Automerge-Triggered-By: GH:jaraco (cherry picked from commit 1cf8424a62db38a041d421a46618e025bbb87f89) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-34013: Don't consider a grouped expression when reporting legacy print ↵Miss Islington (bot)2021-08-011-0/+9
| | | | | | | syntax errors (GH-27521) (cherry picked from commit 208a7e957b812ad3b3733791845447677a704f3e) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44794: Merge tests for typing.Callable and collection.abc.Callable ↵Miss Islington (bot)2021-07-312-115/+140
| | | | | | | (GH-27507) (cherry picked from commit be4cb9089aaf58d5f90da5f9fa66dc3c6763b5a2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44648: Fix error type in inspect.getsource() in interactive session ↵Miss Islington (bot)2021-07-301-1/+16
| | | | | | | (GH-27171) (GH-27495) (cherry picked from commit 48a62559dfaf775e4f1cc56b19379c799e8e2587) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) ↵Miss Islington (bot)2021-07-301-0/+36
| | | | | | | (GH-27494) (cherry picked from commit ceea579ccc51791f3e115155d6f27905bc7544a9) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-42892: fix email multipart attribute error (GH-26903) (GH-27492)Miss Islington (bot)2021-07-301-1/+33
| | | | | (cherry picked from commit e3f877c32d7cccb734f45310f26beeec793364ce) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44666: Use default encoding as fallback for compile_file (GH-27236) ↵Miss Islington (bot)2021-07-301-0/+8
| | | | | | | | | | (GH-27488) When sys.stdout.encoding is None compile_file will fall back to sys.getdefaultencoding to encode/decode error messages. Co-authored-by: Stefan Hoelzl <stefan.hoelzl@posteo.de> Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr> (cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)
* Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)Miss Islington (bot)2021-07-301-1/+1
| | | | | (cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
* bpo-44761: Change default value of NewType __module__ attr (GH-27406) (GH-27477)Miss Islington (bot)2021-07-301-0/+6
| | | | | (cherry picked from commit 7b975f81e4dba70a42c6279539a7fcfe4211b4c0) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44662: Add ability to annotate types.Union (GH-27214) (GH-27461)Miss Islington (bot)2021-07-301-0/+10
| | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 8182c8329c709f42218a8a17d81639ece5b7b627) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* To fix the random failed test cases of test___xxsubinterpreters in ↵Miss Islington (bot)2021-07-291-0/+15
| | | | | | | multiprocess. (GH-27240) (GH-27452) (cherry picked from commit 9101b39e67c2437e88c0ad6b57aafd48ab08d431) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-44752: Make rlcompleter not call `@property` methods (GH-27401) (GH-27444)Miss Islington (bot)2021-07-291-4/+28
| | | | | | | | | | | * rlcompleter was calling these methods to identify whether to add parenthesis to the completion, based on if the attribute is callable. * for property objects, completion with parenthesis are never desirable. * property methods with print statements behaved very strangely, which was especially unfriendly to language newcomers. <tab> could suddenly produce output unexpectedly. (cherry picked from commit 50de8f74f8e92b20e76438c22b6a8f91afd6df75) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* [3.10] bpo-43897: Reject "_" captures and top-level MatchStar in the AST ↵Miss Islington (bot)2021-07-291-1/+5
| | | | | | | | | | validator (GH-27432) (GH-27435) (cherry picked from commit 8d0647485db5af2a0f0929d6509479ca45f1281b) Co-authored-by: Brandt Bucher <brandt@python.org> Automerge-Triggered-By: GH:brandtbucher
* bpo-27827: identify a greater range of reserved filename on Windows. ↵Miss Islington (bot)2021-07-281-8/+24
| | | | | | | | | | (GH-26698) (GH-27421) `pathlib.PureWindowsPath.is_reserved()` now identifies as reserved filenames with trailing spaces or colons. Co-authored-by: Barney Gale <barney.gale@foundry.com> Co-authored-by: Eryk Sun <eryksun@gmail.com> (cherry picked from commit 56c1f6d7edad454f382d3ecb8cdcff24ac898a50)
* [3.10] bpo-44461: Check early that a pdb target is valid for execution. ↵Jason R. Coombs2021-07-281-0/+14
| | | | | (GH-27227) (GH-27399) Automerge-Triggered-By: GH:jaraco
* bpo-44600: Refactor new tracing tests (GH-27396) (GH-27404)Miss Islington (bot)2021-07-281-67/+74
| | | | | (cherry picked from commit 38ddc8beb38d9a685de296a58b0741850e4853e5) Co-authored-by: Brandt Bucher <brandt@python.org>
* bpo-34013: Move the Python 2 hints from the exception constructor to the ↵Miss Islington (bot)2021-07-272-13/+17
| | | | | | | parser (GH-27392) (cherry picked from commit ecc3c8e4216958d85385bf2467441c975128f26c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] bpo-34013: Generalize the invalid legacy statement error message ↵Pablo Galindo Salgado2021-07-272-1/+7
| | | | | | | (GH-27389). (GH-27391) (cherry picked from commit 6948964ecf94e858448dd28eea634317226d2913) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-266-9/+9
| | | | | | | | (GH-27380) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910) (GH-27379)Miss Islington (bot)2021-07-262-6/+11
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit a2c45e5bcf9d3dfff9f2699dbc161489897616b5) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-44698: Fix undefined behaviour in complex exponentiation. (GH-27278) ↵Miss Islington (bot)2021-07-261-0/+21
| | | | | | | (#27366) (cherry picked from commit 1d582bbc969e05896addf97844ddf17ce9830e5e) Co-authored-by: T. Wouters <thomas@python.org>
* bpo-44732: Rename types.Union to types.UnionType (GH-27342)Miss Islington (bot)2021-07-261-1/+1
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0) Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
* bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27361)Miss Islington (bot)2021-07-261-11/+3
| | | | | (cherry picked from commit 3f135c073a53793ec68902f6b513934ddff47235) Co-authored-by: Logan Jones <loganasherjones@gmail.com>
* [3.10] bpo-44600: Fix line numbers for pattern matching cleanup code ↵Miss Islington (bot)2021-07-261-0/+76
| | | | | | | | | | (GH-27346) (GH-27356) (cherry picked from commit 4214f470f0cb9b6fef9a90758756fbc00ba95b5a) Co-authored-by: Charles Burkland <charles.aburkland@gmail.com> Automerge-Triggered-By: GH:brandtbucher
* bpo-44676: Serialize the union type using only public API (GH-27323) (GH-27340)Miss Islington (bot)2021-07-241-30/+15
| | | | | | | Remove also the _from_args() constructor. (cherry picked from commit 435a0334d341e5f8faed594d9f015746bb7845db) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44731: Simplify the union type implementation (GH-27318) (GH-27334)Ken Jin2021-07-241-13/+13
| | | | | Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-44676: Add ability to serialize types.Union (GH-27244) (GH-27333)Pablo Galindo Salgado2021-07-241-0/+35
| | | | | (cherry picked from commit fe13f0b0f696464dd6f283576668dbf57cb11399) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44353: Improve tests covering typing.NewType pickling (GH-27302) (GH-27328)Miss Islington (bot)2021-07-241-8/+9
| | | | | (cherry picked from commit a22b05da87bdfb081d6aaecfce136ae8dbb8680c) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* [3.10] bpo-44353: Expand NewType tests for complex __qualname__ (GH-27311) ↵Łukasz Langa2021-07-241-14/+42
| | | | | | | | (GH-27326) Make NewType pickleable by name. (cherry picked from commit e89ef0ad2a299770a88ece8f7a316f7d3eb65c9f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ ↵Miss Islington (bot)2021-07-241-0/+30
| | | | | | | (GH-27316) (GH-27324) (cherry picked from commit 5370f0a82aaa4ba617070d5c71d2b18236096ac0) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-29298: Fix crash with required subparsers without dest (GH-3680) (GH-27303)Miss Islington (bot)2021-07-231-0/+24
| | | | | (cherry picked from commit 17575f73ce2cb9f3a4eb4cc416c690f9a4e7205c) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* bpo-44653: Support typing types in parameter substitution in the union type. ↵Miss Islington (bot)2021-07-221-0/+30
| | | | | | | (GH-27247) (#27296) (cherry picked from commit 2e3744d50b6e30ea24351e55b4352dcc58fd469e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44708: Only re-run test methods that match names of previously failing ↵Miss Islington (bot)2021-07-226-178/+343
| | | | | | | | | | | | | | test methods (GH-27287) (GH-27290) * Move to a static argparse.Namespace subclass * Roughly annotate runtest.py * Refactor libregrtest to use lossless test result objects * Only re-run test methods that match names of previously failing test methods * Adopt tests to cover test method name matching Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> (cherry picked from commit f1afef5e0d93d66fbf3c9aaeab8b3b8da9617583) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) ↵Miss Islington (bot)2021-07-221-0/+12
| | | | (GH-27282)
* bpo-44566: resolve differences between asynccontextmanager and ↵Miss Islington (bot)2021-07-202-11/+25
| | | | | | | contextmanager (GH-27024) (#27266) (cherry picked from commit 7f1c330da31c54e028dceaf3610877914c2a4497) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.10] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27268)Miss Islington (bot)2021-07-201-1/+2
| | | | | | | | (cherry picked from commit 6564656495d456a1bcc1aaa06abfc696209f37b2) Co-authored-by: Jakub Kulík <Kulikjak@gmail.com> Automerge-Triggered-By: GH:gpshead
* bpo-44353: Add test to cover __or__ of two NewType (GH-27259) (#27261)Miss Islington (bot)2021-07-201-4/+7
| | | | | (cherry picked from commit 4868b94c6089d457673b1ba5b5b64c2f38c435af) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44353: Refactor typing.NewType into callable class (GH-27250) (#27258)Miss Islington (bot)2021-07-201-0/+20
| | | | | (cherry picked from commit 965dd76e9060e27e2253ba8c8d21a142b178720d) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44524: Add missed __name__ and __qualname__ to typing module objects ↵Miss Islington (bot)2021-07-191-0/+61
| | | | | | | | (GH-27237) (#27246) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit bce1418541a64a793960182772f985f64afbfa1a) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) ↵Miss Islington (bot)2021-07-191-0/+5
| | | | | | | | | | | (GH-27242) getaddresses() should be able to handle a Header object if passed one. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 89f4c34797de2f0e5045da2b97c1c8cbbb42fbb2) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-44490: Improve typing module compatibility with types.Union (GH-27048) ↵Ken Jin2021-07-193-2/+24
| | | | | | | (#27222) (cherry picked from commit bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-44645: Check for interrupts on any potentially backwards edge (GH-27216) ↵Miss Islington (bot)2021-07-191-0/+25
| | | | | | | (GH-27235) (cherry picked from commit d09c13417890427f829e3df297beb0e27133f8f4) Co-authored-by: Mark Shannon <mark@hotpy.org>
* bpo-44633: Fix parameter substitution of the union type with wrong types. ↵Miss Islington (bot)2021-07-181-0/+6
| | | | | | | | | (GH-27218) (GH-27224) A TypeError is now raised instead of returning NotImplemented. (cherry picked from commit 3ea5332a4365bdd771286b3e9692495116e9ceef) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>