Skip to content

Commit d9067ba

Browse files
TST: fix import in test_hash_pandas_object extension test (#53474)
1 parent 2f9d16f commit d9067ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/extension/base/methods.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class BaseMethodsTests(BaseExtensionTests):
2121
def test_hash_pandas_object(self, data):
2222
# _hash_pandas_object should return a uint64 ndarray of the same length
2323
# as the data
24+
from pandas.core.util.hashing import _default_hash_key
25+
2426
res = data._hash_pandas_object(
25-
encoding="utf-8",
26-
hash_key=pd.core.util.hashing._default_hash_key,
27-
categorize=False,
27+
encoding="utf-8", hash_key=_default_hash_key, categorize=False
2828
)
2929
assert res.dtype == np.uint64
3030
assert res.shape == data.shape

0 commit comments

Comments
 (0)