Skip to content

Commit 12f14e2

Browse files
committed
Organize / simplify pandas/tests/test_common.py imports
1 parent 387d1d2 commit 12f14e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/tests/test_common.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# -*- coding: utf-8 -*-
22

3-
import pytest
43
import collections
54
from functools import partial
65

76
import numpy as np
7+
import pytest
88

99
from pandas import Series, Timestamp
10-
import pandas.core.common as com
11-
from pandas.core import ops
10+
from pandas.core import (
11+
_maybe_match_name,
12+
common as com,
13+
)
1214

1315

1416
def test_get_callable_name():
@@ -74,7 +76,7 @@ def test_random_state():
7476
(Series([1], name='x'), [2], 'x'),
7577
([1], Series([2], name='y'), 'y')])
7678
def test_maybe_match_name(left, right, expected):
77-
assert ops._maybe_match_name(left, right) == expected
79+
assert _maybe_match_name(left, right) == expected
7880

7981

8082
def test_dict_compat():

0 commit comments

Comments
 (0)