Skip to content

Commit d749905

Browse files
simonjayhawkinsKevin D Smith
authored and
Kevin D Smith
committed
TST: Different tests were collected between gw0 and gw1 (pandas-dev#37382)
1 parent aa6128b commit d749905

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pandas/tests/computation/test_eval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _is_py3_complex_incompat(result, expected):
117117
return isinstance(expected, (complex, np.complexfloating)) and np.isnan(result)
118118

119119

120-
_good_arith_ops = set(ARITH_OPS_SYMS).difference(SPECIAL_CASE_ARITH_OPS_SYMS)
120+
_good_arith_ops = sorted(set(ARITH_OPS_SYMS).difference(SPECIAL_CASE_ARITH_OPS_SYMS))
121121

122122

123123
# TODO: using range(5) here is a kludge

pandas/tests/frame/apply/test_frame_transform.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_transform_ufunc(axis, float_frame):
2020
tm.assert_frame_equal(result, expected)
2121

2222

23-
@pytest.mark.parametrize("op", transformation_kernels)
23+
@pytest.mark.parametrize("op", sorted(transformation_kernels))
2424
def test_transform_groupby_kernel(axis, float_frame, op):
2525
# GH 35964
2626
if op == "cumcount":
@@ -161,7 +161,7 @@ def test_transform_reducer_raises(all_reductions):
161161

162162
# mypy doesn't allow adding lists of different types
163163
# https://github.com/python/mypy/issues/5492
164-
@pytest.mark.parametrize("op", [*transformation_kernels, lambda x: x + 1])
164+
@pytest.mark.parametrize("op", [*sorted(transformation_kernels), lambda x: x + 1])
165165
def test_transform_bad_dtype(op):
166166
# GH 35964
167167
df = DataFrame({"A": 3 * [object]}) # DataFrame that will fail on most transforms
@@ -182,7 +182,7 @@ def test_transform_bad_dtype(op):
182182
df.transform({"A": [op]})
183183

184184

185-
@pytest.mark.parametrize("op", transformation_kernels)
185+
@pytest.mark.parametrize("op", sorted(transformation_kernels))
186186
def test_transform_partial_failure(op):
187187
# GH 35964
188188
wont_fail = ["ffill", "bfill", "fillna", "pad", "backfill", "shift"]

pandas/tests/series/apply/test_series_transform.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_transform_ufunc(string_series):
1818
tm.assert_series_equal(result, expected)
1919

2020

21-
@pytest.mark.parametrize("op", transformation_kernels)
21+
@pytest.mark.parametrize("op", sorted(transformation_kernels))
2222
def test_transform_groupby_kernel(string_series, op):
2323
# GH 35964
2424
if op == "cumcount":
@@ -144,7 +144,7 @@ def test_transform_reducer_raises(all_reductions):
144144

145145
# mypy doesn't allow adding lists of different types
146146
# https://github.com/python/mypy/issues/5492
147-
@pytest.mark.parametrize("op", [*transformation_kernels, lambda x: x + 1])
147+
@pytest.mark.parametrize("op", [*sorted(transformation_kernels), lambda x: x + 1])
148148
def test_transform_bad_dtype(op):
149149
# GH 35964
150150
s = Series(3 * [object]) # Series that will fail on most transforms

0 commit comments

Comments
 (0)