| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I found tests.addTest(doctest.DocTestSuite patterns in unittests and only these two tests loaded incorrect modules (modules without doctests) |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
I modified the doctest with the change below, ran make clinic && make, and then ./python -m test test_itertools -v. I confirm that test_itertools catchs the typo (fails). diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 3e425ee5f92..092316cf255 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -124,7 +124,7 @@ or when the input iterable is exhausted.
>>> for batch in batched('ABCDEFG', 3):
... print(batch)
...
- ('A', 'B', 'C')
+ ('Aa', 'B', 'C')
('D', 'E', 'F')
('G',)
|
Sorry, something went wrong.
|
Thanks @donbarbos for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
(cherry picked from commit 15a8412) Co-authored-by: donBarbos <donbarbos@proton.me>
|
GH-131136 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
(cherry picked from commit 15a8412) Co-authored-by: donBarbos <donbarbos@proton.me>
|
GH-131137 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
We have one doctest in Modules/itertoolsmodule.c and none in test_itertolls.py so this is definitely a bug like issue #131069