Skip to content

Commit 05d7e60

Browse files
Add test
1 parent 4ebb2b9 commit 05d7e60

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

testing/test_assertrewrite.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,3 +2055,14 @@ def test_max_increased_verbosity(self, pytester: Pytester) -> None:
20552055
self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE * 10)
20562056
result = pytester.runpytest("-vv")
20572057
result.stdout.no_fnmatch_line("*xxx...xxx*")
2058+
2059+
2060+
class TestIssue11140:
2061+
def test_constant_not_picked_as_module_docstring(self, pytester: Pytester) -> None:
2062+
pytester.makepyfile(
2063+
"""\
2064+
0
2065+
"""
2066+
)
2067+
result = pytester.runpytest()
2068+
assert result.ret == 0

0 commit comments

Comments
 (0)