This commit is contained in:
Tushar Sadhwani 2023-06-26 12:37:23 +05:30
parent 4ebb2b94c2
commit 05d7e60904
No known key found for this signature in database
GPG Key ID: E2600702ED5F5CAB
1 changed files with 11 additions and 0 deletions

View File

@ -2055,3 +2055,14 @@ class TestReprSizeVerbosity:
self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE * 10) self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE * 10)
result = pytester.runpytest("-vv") result = pytester.runpytest("-vv")
result.stdout.no_fnmatch_line("*xxx...xxx*") result.stdout.no_fnmatch_line("*xxx...xxx*")
class TestIssue11140:
def test_constant_not_picked_as_module_docstring(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""\
0
"""
)
result = pytester.runpytest()
assert result.ret == 0