@@ -187,7 +187,7 @@ def test_extended_summary(doc):
187
187
def test_parameters (doc ):
188
188
assert len (doc ["Parameters" ]) == 4
189
189
names = [n for n , _ , _ in doc ["Parameters" ]]
190
- assert all (a == b for a , b in zip (names , ["mean" , "cov" , "shape" ]))
190
+ assert all (a == b for a , b in zip (names , ["mean" , "cov" , "shape" ], strict = True ))
191
191
192
192
arg , arg_type , desc = doc ["Parameters" ][1 ]
193
193
assert arg_type == "(N, N) ndarray"
@@ -242,7 +242,7 @@ def test_yields():
242
242
("b" , "int" , "bananas." ),
243
243
("" , "int" , "unknowns." ),
244
244
]
245
- for (arg , arg_type , desc ), (arg_ , arg_type_ , end ) in zip (section , truth ):
245
+ for (arg , arg_type , desc ), (arg_ , arg_type_ , end ) in zip (section , truth , strict = True ):
246
246
assert arg == arg_
247
247
assert arg_type == arg_type_
248
248
assert desc [0 ].startswith ("The number of" )
@@ -253,7 +253,7 @@ def test_sent():
253
253
section = doc_sent ["Receives" ]
254
254
assert len (section ) == 2
255
255
truth = [("b" , "int" , "bananas." ), ("c" , "int" , "oranges." )]
256
- for (arg , arg_type , desc ), (arg_ , arg_type_ , end ) in zip (section , truth ):
256
+ for (arg , arg_type , desc ), (arg_ , arg_type_ , end ) in zip (section , truth , strict = True ):
257
257
assert arg == arg_
258
258
assert arg_type == arg_type_
259
259
assert desc [0 ].startswith ("The number of" )
@@ -374,7 +374,7 @@ def line_by_line_compare(a, b, n_lines=None):
374
374
a = [l .rstrip () for l in _strip_blank_lines (a ).split ("\n " )][:n_lines ]
375
375
b = [l .rstrip () for l in _strip_blank_lines (b ).split ("\n " )][:n_lines ]
376
376
assert len (a ) == len (b )
377
- for ii , (aa , bb ) in enumerate (zip (a , b )):
377
+ for ii , (aa , bb ) in enumerate (zip (a , b , strict = True )):
378
378
assert aa == bb
379
379
380
380
0 commit comments