File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -901,31 +901,26 @@ def test_synopsis(self):
901
901
902
902
def test_source_synopsis (self ):
903
903
test_cases = [
904
- # Single line docstring
905
904
('"""Single line docstring."""' ,
906
905
"Single line docstring." ),
907
906
908
- # Multi-line docstring - should only return first line
909
907
('"""First line of docstring.\n Second line.\n Third line."""' ,
910
908
"First line of docstring." ),
911
909
912
- # Docstring with leading/trailing whitespace
913
910
('""" Whitespace around docstring. """' ,
914
911
"Whitespace around docstring." ),
915
912
916
913
# No docstring
917
914
('x = 1\n y = 2' ,
918
915
None ),
919
916
920
- # Comments before docstring
921
917
('# Comment\n """Docstring after comment."""' ,
922
918
"Docstring after comment." ),
923
919
924
920
# Empty docstring
925
921
('""""""' ,
926
922
"" ),
927
923
928
- # Unicode docstring
929
924
('"""Café and résumé."""' ,
930
925
"Café and résumé." ),
931
926
]
You can’t perform that action at this time.
0 commit comments