Skip to content

xfail constructor test for numpydev #26548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pandas/compat/numpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
_np_version_under1p15 = _nlv < LooseVersion('1.15')
_np_version_under1p16 = _nlv < LooseVersion('1.16')
_np_version_under1p17 = _nlv < LooseVersion('1.17')
_is_numpy_dev = '.dev' in str(_nlv)


if _nlv < '1.13.3':
Expand Down Expand Up @@ -64,5 +65,6 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
'_np_version_under1p14',
'_np_version_under1p15',
'_np_version_under1p16',
'_np_version_under1p17'
'_np_version_under1p17',
'_is_numpy_dev'
]
3 changes: 2 additions & 1 deletion pandas/tests/frame/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import pandas as pd
from pandas import (
Categorical, DataFrame, Index, MultiIndex, RangeIndex, Series, Timedelta,
Timestamp, date_range, isna)
Timestamp, compat, date_range, isna)
from pandas.tests.frame.common import TestData
import pandas.util.testing as tm

Expand Down Expand Up @@ -113,6 +113,7 @@ def test_constructor_dtype_list_data(self):
assert df.loc[1, 0] is None
assert df.loc[0, 1] == '2'

@pytest.mark.xfail(compat.numpy._is_numpy_dev, reason="GH-26546")
def test_constructor_list_frames(self):
# see gh-3243
result = DataFrame([DataFrame()])
Expand Down