summaryrefslogtreecommitdiff
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)Dong-hee Na2020-01-081-2/+2
|
* bpo-38615: Add timeout parameter for IMAP4 and IMAP4_SSL constructor (GH-17203)Dong-hee Na2020-01-071-0/+23
| | | | | | | | imaplib.IMAP4 and imaplib.IMAP4_SSL now have an optional *timeout* parameter for their constructors. Also, the imaplib.IMAP4.open() method now has an optional *timeout* parameter with this change. The overridden methods of imaplib.IMAP4_SSL and imaplib.IMAP4_stream were applied to this change.
* bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882)Victor Stinner2020-01-071-1/+4
| | | | The select.epoll.unregister() method no longer ignores the EBADF error.
* bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863)Andrew Svetlov2020-01-071-2/+6
| | | https://bugs.python.org/issue39191
* bpo-39209: Manage correctly multi-line tokens in interactive mode (GH-17860)Pablo Galindo2020-01-061-0/+36
|
* Organise and clean test_positional_only_arg and add more tests (GH-17842)Pablo Galindo2020-01-051-14/+23
|
* bpo-39200: Correct the error message for range() empty constructor (GH-17813)Pablo Galindo2020-01-051-0/+13
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix constant folding optimization for positional only arguments (GH-17837)Anthony Sottile2020-01-051-0/+12
|
* bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. ↵Serhiy Storchaka2020-01-051-0/+1
| | | | (GH-17616)
* bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)Serhiy Storchaka2020-01-051-0/+23
| | | No longer import the re module if it is not needed.
* bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)Serhiy Storchaka2020-01-051-0/+22
| | | Ignore leading dots and no longer ignore a trailing newline.
* Fix SystemError when nested function has annotation on positional-only ↵Anthony Sottile2020-01-051-0/+7
| | | | argument (GH-17826)
* bpo-39158: ast.literal_eval() doesn't support empty sets (GH-17742)Raymond Hettinger2020-01-021-0/+1
|
* bpo-38870: Throw ValueError on invalid yield from usage (GH-17798)Batuhan Taşkaya2020-01-021-0/+2
|
* bpo-39114: Fix tracing of except handlers with name binding (GH-17769)Pablo Galindo2020-01-021-0/+45
| | | When producing the bytecode of exception handlers with name binding (like `except Exception as e`) we need to produce a try-finally block to make sure that the name is deleted after the handler is executed to prevent cycles in the stack frame objects. The bytecode associated with this try-finally block does not have source lines associated and it was causing problems when the tracing functionality was running over it.
* bpo-13601: always use line-buffering for sys.stderr (GH-17646)Jendrik Seipp2020-01-011-0/+16
|
* bpo-39142: Avoid converting namedtuple instances to ConvertingTuple. (GH-17773)Vinay Sajip2020-01-011-0/+31
| | | | | | | This uses the heuristic of assuming a named tuple is a subclass of tuple with a _fields attribute. This change means that contents of a named tuple wouldn't be converted - if a user wants to have ConvertingTuple functionality from a namedtuple, they will have to implement it themselves.
* bpo-39176: Improve error message for 'named assignment' (GH-17777)Ned Batchelder2019-12-312-3/+3
|
* bpo-38588: Fix possible crashes in dict and list when calling ↵Dong-hee Na2019-12-312-1/+36
| | | | | | PyObject_RichCompareBool (GH-17734) Take strong references before calling PyObject_RichCompareBool to protect against the case where the object dies during the call.
* bpo-38610: Fix possible crashes in several list methods (GH-17022)Zackery Spytz2019-12-301-0/+26
| | | Hold strong references to list elements while calling PyObject_RichCompareBool().
* bpo-39019: Implement missing __class_getitem__ for SpooledTemporaryFile ↵Batuhan Taşkaya2019-12-301-0/+3
| | | | | | (GH-17560)
* bpo-39019: Implement missing __class_getitem__ for subprocess classes (GH-17558)Batuhan Taşkaya2019-12-301-0/+3
|
* bpo-34790: Implement deprecation of passing coroutines to asyncio.wait() ↵Kyle Stanley2019-12-301-5/+19
| | | | (GH-16977)
* Fix handling of line numbers around finally-blocks. (#17737)Mark Shannon2019-12-301-0/+66
|
* bpo-39157: Skip test_pidfd_send_signal if the system does not have enough ↵Pablo Galindo2019-12-291-0/+2
| | | | privileges to use pidfd (GH-17740)
* Fix error when running with -uall in test_unparse (GH-17739)Pablo Galindo2019-12-291-7/+7
|
* bpo-38870: Run always tests that heavily use grammar features in ↵Pablo Galindo2019-12-291-1/+11
| | | | test_unparse (GH-17738)
* bpo-38878: Fix os.PathLike __subclasshook__ (GH-17336)Bar Harel2019-12-221-0/+8
| | | | Quick subclasshook fix using the same method is being used in collections.abc (up to a certain degree).
* bpo-38546: Fix concurrent.futures test_ressources_gced_in_workers() (GH-17652)Victor Stinner2019-12-181-3/+11
| | | | | Fix test_ressources_gced_in_workers() of test_concurrent_futures: explicitly stop the manager to prevent leaking a child process running in the background after the test completes.
* bpo-39080: Starred Expression's column offset fix when inside a CALL (GH-17645)Lysandros Nikolaou2019-12-181-0/+9
| | | | Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
* bpo-38546: multiprocessing tests stop the resource tracker (GH-17641)Victor Stinner2019-12-172-21/+2
| | | | | | | | | | Multiprocessing and concurrent.futures tests now stop the resource tracker process when tests complete. Add ResourceTracker._stop() method to multiprocessing.resource_tracker. Add _cleanup_tests() helper function to multiprocessing.util: share code between multiprocessing and concurrent.futures tests.
* bpo-39041: Add GitHub Actions support (GH-17594)Steve Dower2019-12-161-1/+1
|
* bpo-38811: Check for presence of os.link method in pathlib (GH-17225)Toke Høiland-Jørgensen2019-12-161-0/+10
| | | | | | | | | | | Commit 6b5b013bcc22 ("bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990)") introduced a new link_to method in pathlib. However, this makes pathlib crash when the 'os' module is missing a 'link' method. Fix this by checking for the presence of the 'link' method on pathlib module import, and if it's not present, turn it into a runtime error like those emitted when there is no lchmod() or symlink(). Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
* Add tests and design notes for Counter subset/superset operations. (GH-17625)Raymond Hettinger2019-12-161-0/+23
|
* bpo-39033: Fix NameError in zipimport during hash validation (GH-17588)Xtreak2019-12-161-0/+16
| | | | Patch by Karthikeyan Singaravelan.
* bpo-38629: implement __floor__ and __ceil__ for float type (GH-16985)Batuhan Taşkaya2019-12-151-0/+28
|
* Fix elif start column offset when there is an else following (GH-17596)Lysandros Nikolaou2019-12-141-0/+9
|
* bpo-36406: Handle namespace packages in doctest (GH-12520)Xtreak2019-12-131-1/+5
|
* bpo-39031: Include elif keyword when producing lineno/col-offset info for ↵Lysandros Nikolaou2019-12-121-0/+9
| | | | | | | | | | | | if_stmt (GH-17582) When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node. https://bugs.python.org/issue39031 Automerge-Triggered-By: @pablogsal
* Fix warnings in test_asyncio.test_base_events (#17577)Kyle Stanley2019-12-121-3/+4
| | | Co-authored-by: tirkarthi
* bpo-38614: Use support timeout constants (GH-17572)Victor Stinner2019-12-115-36/+67
|
* bpo-38614: Use test.support.SHORT_TIMEOUT constant (GH-17566)Victor Stinner2019-12-1118-63/+68
| | | | | | | | | | | | | | | Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once. SHORT_TIMEOUT is 30 seconds by default, but it can be longer depending on --timeout command line option. The change makes almost all timeouts longer, except test_reap_children() of test_support which is made 2x shorter: SHORT_TIMEOUT should be enough. If this test starts to fail, LONG_TIMEOUT should be used instead. Uniformize also "from test import support" import in some test files.
* bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 (GH-17568)Jason R. Coombs2019-12-101-0/+33
| | | | | | | | * bpo-39022, bpo-38594: Sync with importlib_metadata 1.3 including improved docs for custom finders and better serialization support in EntryPoints. * 📜🤖 Added by blurb_it. * Correct module reference
* bpo-38614: Use test.support.INTERNET_TIMEOUT constant (GH-17565)Victor Stinner2019-12-103-10/+12
| | | | | Replace hardcoded timeout constants in tests with INTERNET_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once.
* bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)Victor Stinner2019-12-103-5/+6
| | | | | | | | Replace hardcoded timeout constants in tests with LONG_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once. LONG_TIMEOUT is 5 minutes by default, but it can be longer depending on --timeout command line option.
* bpo-38614: Use default join_thread() timeout in tests (GH-17559)Victor Stinner2019-12-107-34/+26
| | | | | Tests no longer pass a timeout value to join_thread() of test.support: use the default join_thread() timeout instead (SHORT_TIMEOUT constant of test.support).
* bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)Victor Stinner2019-12-109-42/+68
| | | | | Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once.
* bpo-39004: increment large sendfile() test timeout (GH-17552)Giampaolo Rodola2019-12-101-1/+3
|
* Clean imports in test_unparse (GH-17545)Pablo Galindo2019-12-101-2/+0
|
* bpo-39009: Fix typo in test__locale (GH-17544)Tim Gates2019-12-091-1/+1
|