Skip to content

Commit 09a602d

Browse files
committed
move test
1 parent 777e801 commit 09a602d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pandas/tests/series/test_dtypes.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -506,19 +506,6 @@ def test_is_homogeneous_type(self):
506506
assert Series([1, 2])._is_homogeneous_type
507507
assert Series(pd.Categorical([1, 2]))._is_homogeneous_type
508508

509-
@pytest.mark.parametrize(
510-
"data",
511-
[
512-
pd.period_range("2000", periods=4),
513-
pd.IntervalIndex.from_breaks([1, 2, 3, 4]),
514-
],
515-
)
516-
def test_values_compatibility(self, data):
517-
# https://github.com/pandas-dev/pandas/issues/23995
518-
result = pd.Series(data).values
519-
expected = np.array(data.astype(object))
520-
tm.assert_numpy_array_equal(result, expected)
521-
522509
@pytest.mark.parametrize(
523510
"data, uniques, dtype",
524511
[
@@ -545,3 +532,16 @@ def test_unique_preserve_dtype(self, data, uniques, dtype):
545532
expected = np.array(uniques, dtype=dtype)
546533

547534
tm.assert_numpy_array_equal(result, expected)
535+
536+
@pytest.mark.parametrize(
537+
"data",
538+
[
539+
pd.period_range("2000", periods=4),
540+
pd.IntervalIndex.from_breaks([1, 2, 3, 4]),
541+
],
542+
)
543+
def test_values_compatibility(self, data):
544+
# https://github.com/pandas-dev/pandas/issues/23995
545+
result = pd.Series(data).values
546+
expected = np.array(data.astype(object))
547+
tm.assert_numpy_array_equal(result, expected)

0 commit comments

Comments
 (0)