File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 66
77import jinja2
88import pytest
9- from pytest import warns as assert_warns
109
1110from numpydoc .docscrape import ClassDoc , FunctionDoc , NumpyDocString
1211from numpydoc .docscrape_sphinx import (
@@ -907,7 +906,7 @@ class Dummy:
907906
908907def test_see_also_trailing_comma_warning ():
909908 warnings .filterwarnings ("error" )
910- with assert_warns (
909+ with pytest . warns (
911910 Warning ,
912911 match = "Unexpected comma or period after function list at index 43 of line .*" ,
913912 ):
@@ -1000,13 +999,12 @@ def test_trailing_colon():
1000999
10011000
10021001def test_no_summary ():
1003- str (
1004- SphinxDocString (
1005- """
1006- Parameters
1007- ----------"""
1008- )
1002+ ds = SphinxDocString (
1003+ """
1004+ Parameters
1005+ ----------"""
10091006 )
1007+ assert ds ["Summary" ] == ["" ]
10101008
10111009
10121010def test_unicode ():
You can’t perform that action at this time.
0 commit comments