You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code in pandas/blob/master/pandas/conftest.py uses a relative vs absolute path.
@pytest.fixturedefdatapath(request):
"""Get the path to a data file. Parameters ---------- path : str Path to the file, relative to ``pandas/tests/`` Returns ------- path : path including ``pandas/tests``. Raises ------ ValueError If the path doesn't exist and the --strict-data-files option is set. """defdeco(*args):
path=os.path.join('pandas', 'tests', *args)
ifnotos.path.exists(path):
ifrequest.config.getoption("--strict-data-files"):
msg="Could not find file {} and --strict-data-files is set."raiseValueError(msg.format(path))
else:
msg="Could not find {}."pytest.skip(msg.format(path))
returnpathreturndeco
This means that the test runner must be run from the root of the project directory which could be inconvenient when running tests in a specific directory.
Uh oh!
There was an error while loading. Please reload this page.
The following code in pandas/blob/master/pandas/conftest.py uses a relative vs absolute path.
This means that the test runner must be run from the root of the project directory which could be inconvenient when running tests in a specific directory.
Output of
pd.show_versions()
pandas: 0.24.0.dev0+170.g36422a884
pytest: 3.6.2
pip: 10.0.1
setuptools: 39.2.0
Cython: 0.28.3
numpy: 1.14.5
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: 1.7.5
patsy: None
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: