@@ -331,7 +331,7 @@ def _strip_blank_lines(s):
331
331
332
332
333
333
def line_by_line_compare (a , b ):
334
- a = textwrap .dedent (a )
334
+ a = textwrap .dedent (a ). replace ( u' \u200B ' , '' )
335
335
b = textwrap .dedent (b )
336
336
a = [l .rstrip () for l in _strip_blank_lines (a ).split ('\n ' )]
337
337
b = [l .rstrip () for l in _strip_blank_lines (b ).split ('\n ' )]
@@ -717,9 +717,8 @@ def test_see_also():
717
717
foobar
718
718
""" )
719
719
720
- assert len (doc6 ['See Also' ]) == 10 , str ([ len ( doc6 [ 'See Also' ])])
720
+ assert len (doc6 ['See Also' ]) == 10
721
721
for funcs , desc in doc6 ['See Also' ]:
722
- print (funcs , desc )
723
722
for func , role in funcs :
724
723
if func in ('func_a' , 'func_b' , 'func_c' , 'func_f' ,
725
724
'func_g' , 'func_h' , 'func_j' , 'func_k' , 'baz.obj_q' ,
@@ -748,13 +747,9 @@ def test_see_also():
748
747
assert desc == ['some other func over' , 'multiple lines' ]
749
748
elif func == 'class_j' :
750
749
assert desc == ['fubar' , 'foobar' ]
751
- elif func == ' func_j2' :
750
+ elif func in [ 'func_f2' , 'func_g2' , 'func_h2' , ' func_j2'] :
752
751
assert desc == ['description of multiple' ], str ([desc , ['description of multiple' ]])
753
752
754
- # s = str(doc6)
755
- # print(repr(s))
756
- # assert 1 == 0
757
-
758
753
759
754
def test_see_also_parse_error ():
760
755
text = (
0 commit comments