@@ -332,7 +332,7 @@ def _strip_blank_lines(s):
332
332
333
333
334
334
def line_by_line_compare (a , b ):
335
- a = textwrap .dedent (a )
335
+ a = textwrap .dedent (a ). replace ( u' \u200B ' , '' )
336
336
b = textwrap .dedent (b )
337
337
a = [l .rstrip () for l in _strip_blank_lines (a ).split ('\n ' )]
338
338
b = [l .rstrip () for l in _strip_blank_lines (b ).split ('\n ' )]
@@ -702,9 +702,8 @@ def test_see_also():
702
702
foobar
703
703
""" )
704
704
705
- assert len (doc6 ['See Also' ]) == 10 , str ([ len ( doc6 [ 'See Also' ])])
705
+ assert len (doc6 ['See Also' ]) == 10
706
706
for funcs , desc in doc6 ['See Also' ]:
707
- print (funcs , desc )
708
707
for func , role in funcs :
709
708
if func in ('func_a' , 'func_b' , 'func_c' , 'func_f' ,
710
709
'func_g' , 'func_h' , 'func_j' , 'func_k' , 'baz.obj_q' ,
@@ -733,13 +732,9 @@ def test_see_also():
733
732
assert desc == ['some other func over' , 'multiple lines' ]
734
733
elif func == 'class_j' :
735
734
assert desc == ['fubar' , 'foobar' ]
736
- elif func == ' func_j2' :
735
+ elif func in [ 'func_f2' , 'func_g2' , 'func_h2' , ' func_j2'] :
737
736
assert desc == ['description of multiple' ], str ([desc , ['description of multiple' ]])
738
737
739
- # s = str(doc6)
740
- # print(repr(s))
741
- # assert 1 == 0
742
-
743
738
744
739
def test_see_also_parse_error ():
745
740
text = (
0 commit comments