Pandas Fails Test
#### Code Sample, a copy-pastable example if possible

```python

$ python3 -m jupyter console
Jupyter console 6.0.0

Python 3.6.5 (default, Apr  4 2018, 15:09:05) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.0.1 -- An enhanced Interactive Python. Type '?' for help.



In [1]: import pandas as pd                                                                         

In [2]: pd.test()                                                                                   
running: pytest --skip-slow --skip-network /home/rick/.local/lib/python3.6/site-packages/pandas
======================================= test session starts ========================================
platform linux -- Python 3.6.5, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: /home/rick, inifile:
collected 31220 items / 7 errors / 3 skipped

============================================== ERRORS ==============================================
_______ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/test_categorical.py _______
ImportError while importing test module '/home/rick/.local/lib/python3.6/site-packages/pandas/tests/test_categorical.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.local/lib/python3.6/site-packages/pandas/tests/test_categorical.py:29: in <module>
    from pandas.core.categorical import _recode_for_categories
E   ImportError: cannot import name '_recode_for_categories'
----------------------------------------- Captured stderr ------------------------------------------
/home/rick/.local/lib/python3.6/site-packages/pandas/tests/test_categorical.py:29: FutureWarning: 'pandas.core' is private. Use 'pandas.Categorical'
  from pandas.core.categorical import _recode_for_categories
_________ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/test_panel4d.py _________
.local/lib/python3.6/site-packages/pandas/tests/test_panel4d.py:13: in <module>
    from pandas.core.panel4d import Panel4D
.local/lib/python3.6/site-packages/pandas/core/panel4d.py:43: in <module>
    """))
.local/lib/python3.6/site-packages/pandas/core/panelnd.py:47: in create_nd_panel_factory
    aliases=aliases, slicers=slices)
.local/lib/python3.6/site-packages/pandas/core/generic.py:290: in _setup_axes
    set_axis(a, i)
.local/lib/python3.6/site-packages/pandas/core/generic.py:281: in set_axis
    setattr(cls, a, properties.AxisProperty(i, docs.get(a, a)))
E   AttributeError: 'NoneType' object has no attribute 'get'
____ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/groupby/test_aggregate.py ____
ImportError while importing test module '/home/rick/.local/lib/python3.6/site-packages/pandas/tests/groupby/test_aggregate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.local/lib/python3.6/site-packages/pandas/tests/groupby/test_aggregate.py:22: in <module>
    from pandas.core.groupby import SpecificationError, DataError
E   ImportError: cannot import name 'SpecificationError'
______ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/scalar/test_period.py ______
.local/lib/python3.6/site-packages/pandas/tests/scalar/test_period.py:13: in <module>
    from pandas._libs import tslib, period as libperiod
pandas/_libs/period.pyx:1: in init pandas._libs.period
    ???
E   AttributeError: module 'pandas._libs.tslib' has no attribute '__pyx_capi__'
__ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/scalar/test_period_asfreq.py ___
ImportError while importing test module '/home/rick/.local/lib/python3.6/site-packages/pandas/tests/scalar/test_period_asfreq.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.local/lib/python3.6/site-packages/pandas/tests/scalar/test_period_asfreq.py:4: in <module>
    from pandas.tseries.frequencies import _period_code_map
E   ImportError: cannot import name '_period_code_map'
_______ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/sparse/test_list.py _______
ImportError while importing test module '/home/rick/.local/lib/python3.6/site-packages/pandas/tests/sparse/test_list.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.local/lib/python3.6/site-packages/pandas/tests/sparse/test_list.py:6: in <module>
    from pandas.core.sparse.api import SparseList, SparseArray
E   ImportError: cannot import name 'SparseList'
_____ ERROR collecting .local/lib/python3.6/site-packages/pandas/tests/tseries/test_offsets.py _____
ImportError while importing test module '/home/rick/.local/lib/python3.6/site-packages/pandas/tests/tseries/test_offsets.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.local/lib/python3.6/site-packages/pandas/tests/tseries/test_offsets.py:15: in <module>
    from pandas.tseries.frequencies import (_offset_map, get_freq_code,
E   ImportError: cannot import name '_get_freq_str'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================== 3 skipped, 7 error in 10.41 seconds ================================
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

/home/rick/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py:3273: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
  warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)

In [3]:              

```
#### Problem description

Test fails promptly.

#### Expected Output

All Tests passing

#### Output of ``pd.show_versions()``

<details>

[paste the output of ``pd.show_versions()`` here below this line]
In [3]: pd.show_versions()                                                                          

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.16.11-100.fc26.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.23.4
pytest: 3.2.3
pip: 18.1
setuptools: 40.4.3
Cython: None
numpy: 1.15.2
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.0.1
sphinx: None
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.0
openpyxl: None
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: 4.2.5
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None


</details>
