Skip to content
Snippets Groups Projects
Commit b895595e authored by Andreas Tille's avatar Andreas Tille
Browse files

Take over remaining bits of Rebeccas patches

parent a4db0a21
No related branches found
No related tags found
No related merge requests found
Description: Fix FTBFS with pandas 2.0
Bug-Debian: https://bugs.debiab.org/1044076
Author: Andreas Tille <tille@debian.org>
Author: Andreas Tille <tille@debian.org>,
"Rebecca N. Palmer" <rebecca_palmer@zoho.com>
Last-Update: Fri, 02 Feb 2024 18:02:11 +0100
--- a/influxdb/tests/dataframe_client_test.py
......@@ -37,7 +38,7 @@ Last-Update: Fri, 02 Feb 2024 18:02:11 +0100
"2015-01-29 21:55:43.702900257+0000",
"2015-01-29 21:55:43.702900257+0000",
- "2015-06-11 20:46:02+0000"]))
+ "2015-06-11 20:46:02+0000"], format='ISO8601'))
+ "2015-06-11 20:46:02.000000000+0000"]))
if pd1.index.tzinfo is None:
pd1.index = pd1.index.tz_localize('UTC')
pd2 = pd.DataFrame(
......@@ -50,6 +51,24 @@ Last-Update: Fri, 02 Feb 2024 18:02:11 +0100
0.64, 0.5434, np.NaN]
]
}
@@ -1010,7 +1010,7 @@ class TestDataFrameClient(unittest.TestC
index=pd.to_datetime([
"2015-01-29 21:55:43.702900257+0000",
"2015-01-29 21:55:43.702900257+0000",
- "2015-06-11 20:46:02+0000"]))
+ "2015-06-11 20:46:02.000000000+0000"]))
if pd1.index.tzinfo is None:
pd1.index = pd1.index.tz_localize('UTC')
@@ -1021,7 +1021,7 @@ class TestDataFrameClient(unittest.TestC
index=pd.to_datetime([
"2015-01-29 21:55:43.702900257+0000",
"2015-01-29 21:55:43.702900257+0000",
- "2015-06-11 20:46:02+0000"]))
+ "2015-06-11 20:46:02.000000000+0000"]))
if pd1_dropna.index.tzinfo is None:
pd1_dropna.index = pd1_dropna.index.tz_localize('UTC')
--- a/influxdb/tests/influxdb08/dataframe_client_test.py
+++ b/influxdb/tests/influxdb08/dataframe_client_test.py
@@ -18,7 +18,7 @@ from .client_test import _mocked_session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment