From 1960264d09c07e47e770994d9d2c68ff14f23ac2 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Mon, 9 Jun 2025 19:22:39 +0000 Subject: [PATCH 1/7] test: updates tests with regex matches --- tests/compliance/date/test_date_compliance.py | 40 +++++++++++++++++-- tests/compliance/json/test_json_compliance.py | 40 +++++++++++++++++++ tests/compliance/time/test_time_compliance.py | 38 ++++++++++++++++-- 3 files changed, 112 insertions(+), 6 deletions(-) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index 52b9c04..452c93e 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -51,8 +51,15 @@ class TestDtype(base.BaseDtypeTests): class TestGetitem(base.BaseGetitemTests): - pass - + def test_take_pandas_style_negative_raises(self, data, na_value): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3). + with pytest.raises(ValueError): + data.take([0, -2], fill_value=na_value, allow_fill=True) class TestGroupby(base.BaseGroupbyTests): pass @@ -102,6 +109,22 @@ def test_hash_pandas_object(self): further investigation. See issues 182, 183, 185.""" ) + def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3) + data = data_missing_for_sorting + + with pytest.raises(NotImplementedError): + data.argmin(skipna=False) + + with pytest.raises(NotImplementedError): + data.argmax(skipna=False) + + class TestParsing(base.BaseParsingTests): pass @@ -116,7 +139,18 @@ class TestReshaping(base.BaseReshapingTests): class TestSetitem(base.BaseSetitemTests): - pass + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3). + def test_setitem_invalid(self, data, invalid_scalar): + with pytest.raises((ValueError, TypeError)): + data[0] = invalid_scalar + + with pytest.raises((ValueError, TypeError)): + data[:] = invalid_scalar # NDArrayBacked2DTests suite added in https://github.com/pandas-dev/pandas/pull/44974 diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index 9a0d0ef..62edf46 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -107,6 +107,16 @@ def test_getitem_scalar(self, data): """ super().test_getitem_scalar(data) + def test_take_pandas_style_negative_raises(self, data, na_value): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3). + with pytest.raises(ValueError): + data.take([0, -2], fill_value=na_value, allow_fill=True) + class TestJSONArrayIndex(base.BaseIndexTests): pass @@ -190,6 +200,20 @@ def test_sort_values(self, data_for_sorting): def test_sort_values_frame(self, data_for_sorting): super().test_sort_values_frame(data_for_sorting) + def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3) + data = data_missing_for_sorting + + with pytest.raises(NotImplementedError): + data.argmin(skipna=False) + + with pytest.raises(NotImplementedError): + data.argmax(skipna=False) class TestJSONArrayMissing(base.BaseMissingTests): @pytest.mark.xfail(reason="Setting a dict as a scalar") @@ -357,5 +381,21 @@ def test_setitem_preserves_views(self, data): super().test_setitem_preserves_views(data) + def test_setitem_invalid(self, data, invalid_scalar): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3) + with pytest.raises((ValueError, TypeError)): + data[0] = invalid_scalar + + with pytest.raises((ValueError, TypeError)): + data[:] = invalid_scalar + + + + class TestJSONArrayDim2Compat(base.Dim2CompatTests): pass diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index 118c61d..674c4a0 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -56,8 +56,15 @@ class TestDtype(base.BaseDtypeTests): class TestGetitem(base.BaseGetitemTests): - pass - + def test_take_pandas_style_negative_raises(self, data, na_value): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3). + with pytest.raises(ValueError): + data.take([0, -2], fill_value=na_value, allow_fill=True) class TestGroupby(base.BaseGroupbyTests): pass @@ -95,6 +102,20 @@ def test_value_counts(self, all_data, dropna): tm.assert_series_equal(result, expected) + def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3) + data = data_missing_for_sorting + + with pytest.raises(NotImplementedError): + data.argmin(skipna=False) + + with pytest.raises(NotImplementedError): + data.argmax(skipna=False) class TestParsing(base.BaseParsingTests): pass @@ -109,4 +130,15 @@ class TestReshaping(base.BaseReshapingTests): class TestSetitem(base.BaseSetitemTests): - pass + def test_setitem_invalid(self, data, invalid_scalar): + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3) + with pytest.raises((ValueError, TypeError)): + data[0] = invalid_scalar + + with pytest.raises((ValueError, TypeError)): + data[:] = invalid_scalar \ No newline at end of file From 85455132e8ea98238342e775a482a54ae400edad Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 9 Jun 2025 19:27:50 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- tests/compliance/date/test_date_compliance.py | 14 +++++----- tests/compliance/json/test_json_compliance.py | 4 +-- tests/compliance/time/test_time_compliance.py | 28 ++++++++++--------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index 452c93e..c108acd 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -52,15 +52,16 @@ class TestDtype(base.BaseDtypeTests): class TestGetitem(base.BaseGetitemTests): def test_take_pandas_style_negative_raises(self, data, na_value): - # This test was failing compliance checks because it attempted to match - # a pytest regex match using an empty string (""), which pytest version - # 8.4.0 stopped allowing. - # The test has been updated in pandas main so that it will - # no longer fail, but the fix is not expected to be released until - # at least pandas version 3.0 (current version is 2.3). + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3). with pytest.raises(ValueError): data.take([0, -2], fill_value=na_value, allow_fill=True) + class TestGroupby(base.BaseGroupbyTests): pass @@ -125,7 +126,6 @@ def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): data.argmax(skipna=False) - class TestParsing(base.BaseParsingTests): pass diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index 62edf46..24e6e2d 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -215,6 +215,7 @@ def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): with pytest.raises(NotImplementedError): data.argmax(skipna=False) + class TestJSONArrayMissing(base.BaseMissingTests): @pytest.mark.xfail(reason="Setting a dict as a scalar") def test_fillna_series(self): @@ -380,7 +381,6 @@ def test_setitem_mask_boolean_array_with_na(self, data, box_in_series): def test_setitem_preserves_views(self, data): super().test_setitem_preserves_views(data) - def test_setitem_invalid(self, data, invalid_scalar): # This test was failing compliance checks because it attempted to match # a pytest regex match using an empty string (""), which pytest version @@ -395,7 +395,5 @@ def test_setitem_invalid(self, data, invalid_scalar): data[:] = invalid_scalar - - class TestJSONArrayDim2Compat(base.Dim2CompatTests): pass diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index 674c4a0..3ab0605 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -57,15 +57,16 @@ class TestDtype(base.BaseDtypeTests): class TestGetitem(base.BaseGetitemTests): def test_take_pandas_style_negative_raises(self, data, na_value): - # This test was failing compliance checks because it attempted to match - # a pytest regex match using an empty string (""), which pytest version - # 8.4.0 stopped allowing. - # The test has been updated in pandas main so that it will - # no longer fail, but the fix is not expected to be released until - # at least pandas version 3.0 (current version is 2.3). + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3). with pytest.raises(ValueError): data.take([0, -2], fill_value=na_value, allow_fill=True) + class TestGroupby(base.BaseGroupbyTests): pass @@ -117,6 +118,7 @@ def test_argmax_argmin_no_skipna_notimplemented(self, data_missing_for_sorting): with pytest.raises(NotImplementedError): data.argmax(skipna=False) + class TestParsing(base.BaseParsingTests): pass @@ -131,14 +133,14 @@ class TestReshaping(base.BaseReshapingTests): class TestSetitem(base.BaseSetitemTests): def test_setitem_invalid(self, data, invalid_scalar): - # This test was failing compliance checks because it attempted to match - # a pytest regex match using an empty string (""), which pytest version - # 8.4.0 stopped allowing. - # The test has been updated in pandas main so that it will - # no longer fail, but the fix is not expected to be released until - # at least pandas version 3.0 (current version is 2.3) + # This test was failing compliance checks because it attempted to match + # a pytest regex match using an empty string (""), which pytest version + # 8.4.0 stopped allowing. + # The test has been updated in pandas main so that it will + # no longer fail, but the fix is not expected to be released until + # at least pandas version 3.0 (current version is 2.3) with pytest.raises((ValueError, TypeError)): data[0] = invalid_scalar with pytest.raises((ValueError, TypeError)): - data[:] = invalid_scalar \ No newline at end of file + data[:] = invalid_scalar From 449bc10d2897f7a0ebb68f761ca003025c611889 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Wed, 11 Jun 2025 18:37:26 +0000 Subject: [PATCH 3/7] updates to np.array processing --- tests/compliance/date/test_date_compliance.py | 17 +++++++++- tests/compliance/json/test_json_compliance.py | 32 ++++++++++++++++++- tests/compliance/time/test_time_compliance.py | 18 ++++++++++- 3 files changed, 64 insertions(+), 3 deletions(-) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index c108acd..3f0fb61 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -71,8 +71,23 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): - pass + def test_array_interface_copy(self, data): + import numpy as np + import warnings + from pandas.compat.numpy import np_version_gt2 + + result_copy1 = np.array(data, copy=True) + result_copy2 = np.array(data, copy=True) + assert not np.may_share_memory(result_copy1, result_copy2) + + if not np_version_gt2: + # copy=False semantics are only supported in NumPy>=2. + return + with pytest.raises(ValueError): + result_nocopy1 = np.array(data, copy=False) + result_nocopy2 = np.array(data, copy=False) + assert np.may_share_memory(result_nocopy1, result_nocopy2) class TestMissing(base.BaseMissingTests): pass diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index 24e6e2d..2491150 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -143,6 +143,23 @@ def test_array_interface(self, data): def test_view(self, data): super().test_view(data) + def test_array_interface_copy(self, data): + import numpy as np + import warnings + from pandas.compat.numpy import np_version_gt2 + + result_copy1 = np.array(data, copy=True) + result_copy2 = np.array(data, copy=True) + assert not np.may_share_memory(result_copy1, result_copy2) + + if not np_version_gt2: + # copy=False semantics are only supported in NumPy>=2. + return + + result_nocopy1 = np.array(data, copy=False) + result_nocopy2 = np.array(data, copy=False) + assert not np.may_share_memory(result_nocopy1, result_nocopy2) + class TestJSONArrayParsing(base.BaseParsingTests): @pytest.mark.xfail(reason="data type 'json' not understood") @@ -264,7 +281,20 @@ class TestJSONArrayPrinting(base.BasePrintingTests): class TestJSONArrayReduce(base.BaseReduceTests): - pass + @pytest.mark.filterwarnings("ignore::RuntimeWarning") + @pytest.mark.parametrize("skipna", [True, False]) + def test_reduce_series_numeric(self, data, all_numeric_reductions, skipna): + op_name = all_numeric_reductions + ser = pd.Series(data) + + if not self._supports_reduction(ser, op_name): + # Sum does not raise an Error (TypeError or otherwise) + if op_name != "sum": + with pytest.raises(TypeError): + getattr(ser, op_name)(skipna=skipna) + else: + # min/max with empty produce numpy warnings + self.check_reduce(ser, op_name, skipna) class TestJSONArrayReshaping(base.BaseReshapingTests): diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index 3ab0605..da1446a 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -76,7 +76,23 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): - pass + def test_array_interface_copy(self, data): + import numpy as np + import warnings + from pandas.compat.numpy import np_version_gt2 + + result_copy1 = np.array(data, copy=True) + result_copy2 = np.array(data, copy=True) + assert not np.may_share_memory(result_copy1, result_copy2) + + if not np_version_gt2: + # copy=False semantics are only supported in NumPy>=2. + return + + with pytest.raises(ValueError): + result_nocopy1 = np.array(data, copy=False) + result_nocopy2 = np.array(data, copy=False) + assert np.may_share_memory(result_nocopy1, result_nocopy2) class TestMissing(base.BaseMissingTests): From 470c964b7db911af7252e787afacc322a06db17c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 11 Jun 2025 18:40:12 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- tests/compliance/date/test_date_compliance.py | 3 ++- tests/compliance/json/test_json_compliance.py | 4 ++-- tests/compliance/time/test_time_compliance.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index 3f0fb61..c293aa2 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -75,7 +75,7 @@ def test_array_interface_copy(self, data): import numpy as np import warnings from pandas.compat.numpy import np_version_gt2 - + result_copy1 = np.array(data, copy=True) result_copy2 = np.array(data, copy=True) assert not np.may_share_memory(result_copy1, result_copy2) @@ -89,6 +89,7 @@ def test_array_interface_copy(self, data): result_nocopy2 = np.array(data, copy=False) assert np.may_share_memory(result_nocopy1, result_nocopy2) + class TestMissing(base.BaseMissingTests): pass diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index 2491150..214e225 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -147,7 +147,7 @@ def test_array_interface_copy(self, data): import numpy as np import warnings from pandas.compat.numpy import np_version_gt2 - + result_copy1 = np.array(data, copy=True) result_copy2 = np.array(data, copy=True) assert not np.may_share_memory(result_copy1, result_copy2) @@ -288,7 +288,7 @@ def test_reduce_series_numeric(self, data, all_numeric_reductions, skipna): ser = pd.Series(data) if not self._supports_reduction(ser, op_name): - # Sum does not raise an Error (TypeError or otherwise) + # Sum does not raise an Error (TypeError or otherwise) if op_name != "sum": with pytest.raises(TypeError): getattr(ser, op_name)(skipna=skipna) diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index da1446a..59c1e83 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -80,7 +80,7 @@ def test_array_interface_copy(self, data): import numpy as np import warnings from pandas.compat.numpy import np_version_gt2 - + result_copy1 = np.array(data, copy=True) result_copy2 = np.array(data, copy=True) assert not np.may_share_memory(result_copy1, result_copy2) From bb6fc693e26556d9117c170146f989f2c62da448 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Thu, 12 Jun 2025 09:07:22 +0000 Subject: [PATCH 5/7] update imports --- tests/compliance/date/test_date_compliance.py | 1 - tests/compliance/json/test_json_compliance.py | 1 - tests/compliance/time/test_time_compliance.py | 1 - 3 files changed, 3 deletions(-) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index c293aa2..d0bd199 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -73,7 +73,6 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): def test_array_interface_copy(self, data): import numpy as np - import warnings from pandas.compat.numpy import np_version_gt2 result_copy1 = np.array(data, copy=True) diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index 214e225..a068b48 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -145,7 +145,6 @@ def test_view(self, data): def test_array_interface_copy(self, data): import numpy as np - import warnings from pandas.compat.numpy import np_version_gt2 result_copy1 = np.array(data, copy=True) diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index 59c1e83..7c095c9 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -78,7 +78,6 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): def test_array_interface_copy(self, data): import numpy as np - import warnings from pandas.compat.numpy import np_version_gt2 result_copy1 = np.array(data, copy=True) From 4b015aaf0225d510dc7ca900770887a2dd14f583 Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Thu, 12 Jun 2025 09:43:45 +0000 Subject: [PATCH 6/7] update docstrings --- tests/compliance/date/test_date_compliance.py | 4 ++++ tests/compliance/json/test_json_compliance.py | 4 ++++ tests/compliance/time/test_time_compliance.py | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index d0bd199..e6e41be 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -72,6 +72,10 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): def test_array_interface_copy(self, data): + # This test was failing compliance checks due to changes in how + # numpy handles processing when np.array(obj, copy=False). + # Until pandas changes the existing tests, this compliance test + # will continue to fail. import numpy as np from pandas.compat.numpy import np_version_gt2 diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index a068b48..efa5739 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -144,6 +144,10 @@ def test_view(self, data): super().test_view(data) def test_array_interface_copy(self, data): + # This test was failing compliance checks due to changes in how + # numpy handles processing when np.array(obj, copy=False). + # Until pandas changes the existing tests, this compliance test + # will continue to fail. import numpy as np from pandas.compat.numpy import np_version_gt2 diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index 7c095c9..f41edbd 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -77,6 +77,10 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): def test_array_interface_copy(self, data): + # This test was failing compliance checks due to changes in how + # numpy handles processing when np.array(obj, copy=False). + # Until pandas changes the existing tests, this compliance test + # will continue to fail. import numpy as np from pandas.compat.numpy import np_version_gt2 From 2ee96e72ed40765c8786d469ed871283300ca7eb Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Thu, 12 Jun 2025 09:44:51 +0000 Subject: [PATCH 7/7] update docstrings --- tests/compliance/date/test_date_compliance.py | 4 ++-- tests/compliance/json/test_json_compliance.py | 2 +- tests/compliance/time/test_time_compliance.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/compliance/date/test_date_compliance.py b/tests/compliance/date/test_date_compliance.py index e6e41be..ae1ef83 100644 --- a/tests/compliance/date/test_date_compliance.py +++ b/tests/compliance/date/test_date_compliance.py @@ -72,10 +72,10 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): def test_array_interface_copy(self, data): - # This test was failing compliance checks due to changes in how + # This test was failing compliance checks due to changes in how # numpy handles processing when np.array(obj, copy=False). # Until pandas changes the existing tests, this compliance test - # will continue to fail. + # will continue to fail. import numpy as np from pandas.compat.numpy import np_version_gt2 diff --git a/tests/compliance/json/test_json_compliance.py b/tests/compliance/json/test_json_compliance.py index efa5739..da5b63b 100644 --- a/tests/compliance/json/test_json_compliance.py +++ b/tests/compliance/json/test_json_compliance.py @@ -144,7 +144,7 @@ def test_view(self, data): super().test_view(data) def test_array_interface_copy(self, data): - # This test was failing compliance checks due to changes in how + # This test was failing compliance checks due to changes in how # numpy handles processing when np.array(obj, copy=False). # Until pandas changes the existing tests, this compliance test # will continue to fail. diff --git a/tests/compliance/time/test_time_compliance.py b/tests/compliance/time/test_time_compliance.py index f41edbd..99ac5dd 100644 --- a/tests/compliance/time/test_time_compliance.py +++ b/tests/compliance/time/test_time_compliance.py @@ -77,7 +77,7 @@ class TestIndex(base.BaseIndexTests): class TestInterface(base.BaseInterfaceTests): def test_array_interface_copy(self, data): - # This test was failing compliance checks due to changes in how + # This test was failing compliance checks due to changes in how # numpy handles processing when np.array(obj, copy=False). # Until pandas changes the existing tests, this compliance test # will continue to fail. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy