@@ -590,15 +590,15 @@ def test_comparisons():
590590 [True , True , False ],
591591 )
592592
593- for op , answer in zip (ops , answers ):
593+ for op , answer in zip (ops , answers , strict = True ):
594594 operate_and_compare (a1 , a2 , op , answer )
595- for op , answer in zip (ops , answers ):
595+ for op , answer in zip (ops , answers , strict = True ):
596596 operate_and_compare (a1 , dimless , op , answer )
597597
598- for op , answer in zip (ops , answers ):
598+ for op , answer in zip (ops , answers , strict = True ):
599599 operate_and_compare (a1 , a3 , op , answer )
600600
601- for op , answer in zip (ops , answers ):
601+ for op , answer in zip (ops , answers , strict = True ):
602602 operate_and_compare (a1 , a3 .in_units ("cm" ), op , answer )
603603
604604 # Check that comparisons with dimensionless quantities work in both
@@ -862,7 +862,7 @@ def test_iteration():
862862 """
863863 a = np .arange (3 )
864864 b = unyt_array (np .arange (3 ), "cm" )
865- for ia , ib in zip (a , b ):
865+ for ia , ib in zip (a , b , strict = True ):
866866 assert_equal (ia , ib .value )
867867 assert_equal (ib .units , b .units )
868868
@@ -1153,7 +1153,7 @@ def binary_ufunc_comparison(ufunc, a, b):
11531153 if isinstance (ret , tuple ):
11541154 assert isinstance (out , tuple )
11551155 assert len (out ) == len (ret )
1156- for o , r in zip (out , ret ):
1156+ for o , r in zip (out , ret , strict = True ):
11571157 assert_array_equal (r , o )
11581158 else :
11591159 assert_array_equal (ret , out )
0 commit comments