[issue44941] Add check_methods function to standard library

2021-08-20 Thread Finn Mason
Finn Mason added the comment: Thank you for the suggestions. >From what I could tell, the cited python-ideas discussion was more about >checking the signature of a method. However, an issue cited by the ex-BDFL >(issue9731) was helpful. It's a similar idea that verifies that a class >implem

[issue21184] statistics.pvariance with known mean does not work as expected

2021-08-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: See commit d71ab4f73887a6e2b380ddbbfe35b600d236fd4a for bpo-40855. -- nosy: +rhettinger resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: It looks like since GH-27748 got merged, `test_subprocess_wait_no_same_group` in `test_asyncio` has been failing for the Ubuntu SSL tests. -- nosy: +rmast ___ Python tracker

[issue44943] Integrate PyHyphen into the textwrap module?

2021-08-20 Thread Eric V. Smith
Eric V. Smith added the comment: I agree this doesn’t belong in the stdlib. For future reference, my principal objections are 1) the need to manage and distribute per-language dictionaries and 2) difficulty in determining the best algorithm for the stdlib. There are a lot of ways to tweak thi

[issue44967] pydoc should return non-zero exit code when a query is not found

2021-08-20 Thread Gregory Anders
New submission from Gregory Anders : Currently pydoc returns an exit code of zero no matter what, even with e.g. pydoc lsjdfkdfj However, the ability to know whether or not pydoc successfully found a result is useful in tools that embed pydoc in some way. Here's one use case: Vim and Neo

[issue44967] pydoc should return non-zero exit code when a query is not found

2021-08-20 Thread Gregory Anders
Change by Gregory Anders : -- keywords: +patch pull_requests: +26323 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27868 ___ Python tracker ___ _

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: That test does have a yield statement in it, and does cause the deprecation warning to fire off. I'm looking into it.. -- ___ Python tracker ___

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: Would rewriting the test so that it doesn't yield be the right fix? ``` def test_subprocess_wait_no_same_group(self): # start the new process in a new session connect = self.loop.subprocess_shell( functools.pa

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: Yes, it seems like this deprecation detected a broken test that wasn't running. If I add a `raise` statement to it and rerun the test, it still passes on my local system: ./python.exe -m unittest -v test.test_asyncio.test_events.PollEventLoopTests.test_subpr

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: The test was refactored in this commit: https://github.com/python/cpython/commit/658103f84ea860888f8dab9615281ea64fee31b9 the refactoring moved yield statement from inner func into the test. That was 8 years ago so it hasn't worked since then, and since asyn

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: Sure, I'll open a new issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-20 Thread Ryan Mast (nightlark)
New submission from Ryan Mast (nightlark) : A deprecation made in bpo-41322 uncovered issues with test_subprocess_wait_no_same_group in test_asyncio that seems to have been broken for some time. Reverting to a similar structure prior to the refactoring in https://github.com/python/cpython/co

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-20 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: The new issue for the failing test is bpo-44968 -- ___ Python tracker ___ ___ Python-bugs-

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-20 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +andrei.avk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 7.0 -> 8.0 pull_requests: +26324 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27870 ___ Python tracker

[issue44968] Fix/remove test_subprocess_wait_no_same_group from test_asyncio tests

2021-08-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +asyncio type: -> behavior versions: -Python 3.8 ___ Python tracker ___ ___ Python-bug

[issue44524] __name__ attribute in typing module

2021-08-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ceec495598e78f0776dd46d511dcc612a434dc3 by Serhiy Storchaka in branch 'main': bpo-44524: Do not set _name of _SpecialForm without need (GH-27861) https://github.com/python/cpython/commit/4ceec495598e78f0776dd46d511dcc612a434dc3 --

[issue44524] __name__ attribute in typing module

2021-08-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +26325 pull_request: https://github.com/python/cpython/pull/27871 ___ Python tracker ___ __

<    1   2