Skip to content

Commit 8545513

Browse files
1 parent 1960264 commit 8545513

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

tests/compliance/date/test_date_compliance.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,16 @@ class TestDtype(base.BaseDtypeTests):
5252

5353
class TestGetitem(base.BaseGetitemTests):
5454
def test_take_pandas_style_negative_raises(self, data, na_value):
55-
# This test was failing compliance checks because it attempted to match
56-
# a pytest regex match using an empty string (""), which pytest version
57-
# 8.4.0 stopped allowing.
58-
# The test has been updated in pandas main so that it will
59-
# no longer fail, but the fix is not expected to be released until
60-
# at least pandas version 3.0 (current version is 2.3).
55+
# This test was failing compliance checks because it attempted to match
56+
# a pytest regex match using an empty string (""), which pytest version
57+
# 8.4.0 stopped allowing.
58+
# The test has been updated in pandas main so that it will
59+
# no longer fail, but the fix is not expected to be released until
60+
# at least pandas version 3.0 (current version is 2.3).
6161
with pytest.raises(ValueError):
6262
data.take([0, -2], fill_value=na_value, allow_fill=True)
6363

64+
6465
class TestGroupby(base.BaseGroupbyTests):
6566
pass
6667

@@ -125,7 +126,6 @@ def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting):
125126
data.argmax(skipna=False)
126127

127128

128-
129129
class TestParsing(base.BaseParsingTests):
130130
pass
131131

tests/compliance/json/test_json_compliance.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting):
215215
with pytest.raises(NotImplementedError):
216216
data.argmax(skipna=False)
217217

218+
218219
class TestJSONArrayMissing(base.BaseMissingTests):
219220
@pytest.mark.xfail(reason="Setting a dict as a scalar")
220221
def test_fillna_series(self):
@@ -380,7 +381,6 @@ def test_setitem_mask_boolean_array_with_na(self, data, box_in_series):
380381
def test_setitem_preserves_views(self, data):
381382
super().test_setitem_preserves_views(data)
382383

383-
384384
def test_setitem_invalid(self, data, invalid_scalar):
385385
# This test was failing compliance checks because it attempted to match
386386
# a pytest regex match using an empty string (""), which pytest version
@@ -395,7 +395,5 @@ def test_setitem_invalid(self, data, invalid_scalar):
395395
data[:] = invalid_scalar
396396

397397

398-
399-
400398
class TestJSONArrayDim2Compat(base.Dim2CompatTests):
401399
pass

tests/compliance/time/test_time_compliance.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,16 @@ class TestDtype(base.BaseDtypeTests):
5757

5858
class TestGetitem(base.BaseGetitemTests):
5959
def test_take_pandas_style_negative_raises(self, data, na_value):
60-
# This test was failing compliance checks because it attempted to match
61-
# a pytest regex match using an empty string (""), which pytest version
62-
# 8.4.0 stopped allowing.
63-
# The test has been updated in pandas main so that it will
64-
# no longer fail, but the fix is not expected to be released until
65-
# at least pandas version 3.0 (current version is 2.3).
60+
# This test was failing compliance checks because it attempted to match
61+
# a pytest regex match using an empty string (""), which pytest version
62+
# 8.4.0 stopped allowing.
63+
# The test has been updated in pandas main so that it will
64+
# no longer fail, but the fix is not expected to be released until
65+
# at least pandas version 3.0 (current version is 2.3).
6666
with pytest.raises(ValueError):
6767
data.take([0, -2], fill_value=na_value, allow_fill=True)
6868

69+
6970
class TestGroupby(base.BaseGroupbyTests):
7071
pass
7172

@@ -117,6 +118,7 @@ def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting):
117118
with pytest.raises(NotImplementedError):
118119
data.argmax(skipna=False)
119120

121+
120122
class TestParsing(base.BaseParsingTests):
121123
pass
122124

@@ -131,14 +133,14 @@ class TestReshaping(base.BaseReshapingTests):
131133

132134
class TestSetitem(base.BaseSetitemTests):
133135
def test_setitem_invalid(self, data, invalid_scalar):
134-
# This test was failing compliance checks because it attempted to match
135-
# a pytest regex match using an empty string (""), which pytest version
136-
# 8.4.0 stopped allowing.
137-
# The test has been updated in pandas main so that it will
138-
# no longer fail, but the fix is not expected to be released until
139-
# at least pandas version 3.0 (current version is 2.3)
136+
# This test was failing compliance checks because it attempted to match
137+
# a pytest regex match using an empty string (""), which pytest version
138+
# 8.4.0 stopped allowing.
139+
# The test has been updated in pandas main so that it will
140+
# no longer fail, but the fix is not expected to be released until
141+
# at least pandas version 3.0 (current version is 2.3)
140142
with pytest.raises((ValueError, TypeError)):
141143
data[0] = invalid_scalar
142144

143145
with pytest.raises((ValueError, TypeError)):
144-
data[:] = invalid_scalar
146+
data[:] = invalid_scalar

0 commit comments

Comments
 (0)