File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -851,11 +851,11 @@ def test_see_also(prefix):
851851
852852 if func == "func_h" :
853853 assert role == "meth"
854- elif func == "baz.obj_q" or func == "~baz.obj_r" :
854+ elif func in ( "baz.obj_q" , "~baz.obj_r" ) :
855855 assert role == "obj"
856856 elif func == "class_j" :
857857 assert role == "class"
858- elif func in [ "func_h1" , "func_h2" ] :
858+ elif func in ( "func_h1" , "func_h2" ) :
859859 assert role == "meth"
860860 else :
861861 assert role is None , str ([func , role ])
@@ -866,7 +866,7 @@ def test_see_also(prefix):
866866 assert desc == ["some other func over" , "multiple lines" ]
867867 elif func == "class_j" :
868868 assert desc == ["fubar" , "foobar" ]
869- elif func in [ "func_f2" , "func_g2" , "func_h2" , "func_j2" ] :
869+ elif func in ( "func_f2" , "func_g2" , "func_h2" , "func_j2" ) :
870870 assert desc == ["description of multiple" ], str (
871871 [desc , ["description of multiple" ]]
872872 )
You can’t perform that action at this time.
0 commit comments