Skip to content

Commit 1db78e8

Browse files
committed
rename vars in test for 3.10
1 parent 2d4ccf1 commit 1db78e8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_scalars.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,24 +1390,24 @@ def test_timestamp_cmp() -> None:
13901390
)
13911391
assert (eq_arr != ne_arr).all()
13921392

1393-
if sys.version_info >= (3, 11) or not MYPY:
1393+
if sys.version_info >= (3, 10):
13941394
# tests in this block fail with mypy on Python 3.10 in CI only
13951395
# I couldn't reproduce the failure locally so skip mypy on Python 3.10
1396-
eq_arr = check(
1396+
eq1_arr = check(
13971397
assert_type(ts == c_np_ndarray_dt64, np_ndarray_bool), np.ndarray, np.bool_
13981398
)
1399-
ne_arr = check(
1399+
ne1_arr = check(
14001400
assert_type(ts != c_np_ndarray_dt64, np_ndarray_bool), np.ndarray, np.bool_
14011401
)
1402-
assert (eq_arr != ne_arr).all()
1402+
assert (eq1_arr != ne1_arr).all()
14031403
# TODO: the following should be 2D-arrays but it doesn't work in mypy
1404-
eq_arr = check(
1404+
eq1_arr = check(
14051405
assert_type(ts == c_np_2darray_dt64, np_ndarray_bool), np_ndarray_bool
14061406
)
1407-
ne_arr = check(
1407+
ne1_arr = check(
14081408
assert_type(ts != c_np_2darray_dt64, np_ndarray_bool), np_ndarray_bool
14091409
)
1410-
assert (eq_arr != ne_arr).all()
1410+
assert (eq1_arr != ne1_arr).all()
14111411

14121412
eq_s = check(
14131413
assert_type(ts == c_series_timestamp, "pd.Series[bool]"), pd.Series, np.bool_

0 commit comments

Comments
 (0)