@@ -49,7 +49,7 @@ def test_autofunction_callback(self):
49
49
"""Make sure @callback uses can be documented with autofunction."""
50
50
self ._file_contents_eq (
51
51
'autofunction_callback' ,
52
- u 'requestCallback(responseCode)\n \n Some global callback\n \n Arguments:\n * **responseCode** (*number*) -- \n ' )
52
+ 'requestCallback(responseCode)\n \n Some global callback\n \n Arguments:\n * **responseCode** (*number*)\n ' )
53
53
54
54
def test_autofunction_example (self ):
55
55
"""Make sure @example tags can be documented with autofunction."""
@@ -68,10 +68,10 @@ def test_autofunction_destructured_params(self):
68
68
'autofunction_destructured_params' ,
69
69
u'destructuredParams(p1, p2)\n \n '
70
70
' Arguments:\n '
71
- ' * **p1** (*number*) -- \n \n '
72
- ' * **p2** (*Object*) -- \n \n '
73
- ' * **p2.foo** (*string*) -- \n \n '
74
- ' * **p2.bar** (*string*) -- \n ' )
71
+ ' * **p1** (*number*)\n \n '
72
+ ' * **p2** (*Object*)\n \n '
73
+ ' * **p2.foo** (*string*)\n \n '
74
+ ' * **p2.bar** (*string*)\n ' )
75
75
76
76
def test_autofunction_defaults_in_doclet (self ):
77
77
"""Make sure param default values appear in the function definition,
@@ -80,9 +80,9 @@ def test_autofunction_defaults_in_doclet(self):
80
80
'autofunction_defaults_doclet' ,
81
81
'defaultsDocumentedInDoclet(func=() => 5, str="a string with \\ " quote", strNum="42", strBool="true", num=5, nil=null)\n \n '
82
82
' Arguments:\n '
83
- ' * **func** (*function*) -- \n \n '
84
- ' * **strNum** (*string*) -- \n \n '
85
- ' * **strBool** (*string*) -- \n ' )
83
+ ' * **func** (*function*)\n \n '
84
+ ' * **strNum** (*string*)\n \n '
85
+ ' * **strBool** (*string*)\n ' )
86
86
87
87
def test_autofunction_defaults_in_code (self ):
88
88
"""Make sure param default values appear in the function definition,
@@ -357,7 +357,7 @@ def test_union_types(self):
357
357
switched from " | " as the union separator back to "|".
358
358
359
359
"""
360
- assert '* **fnodeA** (*Node|Fnode*) -- ' in self ._file_contents ('union' )
360
+ assert '* **fnodeA** (*Node|Fnode*)' in self ._file_contents ('union' )
361
361
362
362
def test_field_list_unwrapping (self ):
363
363
"""Ensure the tails of field lists have line breaks and leading
0 commit comments