From a607def9d3d715584b73bbf695ddefcdf4dd66c1 Mon Sep 17 00:00:00 2001 From: 01-vyom Date: Thu, 4 Mar 2021 20:19:11 +0530 Subject: [PATCH] STYLE: Inconsistent namespace - api (#39992) --- pandas/tests/api/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py index fd1c19219c4bf..11bb554a0dc5a 100644 --- a/pandas/tests/api/test_api.py +++ b/pandas/tests/api/test_api.py @@ -236,9 +236,9 @@ def test_datetime(): with warnings.catch_warnings(): warnings.simplefilter("ignore", FutureWarning) - assert datetime(2015, 1, 2, 0, 0) == pd.datetime(2015, 1, 2, 0, 0) + assert datetime(2015, 1, 2, 0, 0) == datetime(2015, 1, 2, 0, 0) - assert isinstance(pd.datetime(2015, 1, 2, 0, 0), pd.datetime) + assert isinstance(datetime(2015, 1, 2, 0, 0), datetime) def test_sparsearray():