We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3e6fd commit f89548bCopy full SHA for f89548b
Lib/test/test_unparse.py
@@ -345,8 +345,9 @@ def test_docstrings(self):
345
346
keywords = ("class", "def", "async def")
347
348
- for docstring in docstrings:
349
- self.check_src_roundtrip(f"{random.choice(keywords)} foo():\n {docstring}")
+ for keyword in keywords:
+ for docstring in docstrings:
350
+ self.check_src_roundtrip(f"{keyword} foo():\n {docstring}")
351
352
class DirectoryTestCase(ASTTestCase):
353
"""Test roundtrip behaviour on all files in Lib and Lib/test."""
0 commit comments