Skip to content

Commit f89548b

Browse files
committed
test sequentially
1 parent ad3e6fd commit f89548b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_unparse.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ def test_docstrings(self):
345345

346346
keywords = ("class", "def", "async def")
347347

348-
for docstring in docstrings:
349-
self.check_src_roundtrip(f"{random.choice(keywords)} foo():\n {docstring}")
348+
for keyword in keywords:
349+
for docstring in docstrings:
350+
self.check_src_roundtrip(f"{keyword} foo():\n {docstring}")
350351

351352
class DirectoryTestCase(ASTTestCase):
352353
"""Test roundtrip behaviour on all files in Lib and Lib/test."""

0 commit comments

Comments
 (0)