Skip to content

Commit 0d89151

Browse files
committed
BUG: Use correct location for rdataset
Use carData instead of car
1 parent 786a83e commit 0d89151

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

statsmodels/datasets/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_get_rdataset():
1414
internet_available = check_internet(test_url)
1515
if not internet_available:
1616
pytest.skip('Unable to retrieve file - skipping test')
17-
duncan = get_rdataset("Duncan", "car", cache=cur_dir)
17+
duncan = get_rdataset("Duncan", "carData", cache=cur_dir)
1818
assert_(isinstance(duncan, utils.Dataset))
1919
duncan = get_rdataset("Duncan", "carData", cache=cur_dir)
2020
assert_(duncan.from_cache)

statsmodels/iolib/tests/test_foreign.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""
22
Tests for iolib/foreign.py
33
"""
4+
from statsmodels.compat import PY3
5+
46
import os
57
import warnings
68
from datetime import datetime
@@ -9,7 +11,6 @@
911
import numpy as np
1012
from pandas import DataFrame, isnull
1113
import pandas.util.testing as ptesting
12-
import pytest
1314

1415
from statsmodels.compat.python import BytesIO, asbytes
1516
import statsmodels.api as sm
@@ -18,8 +19,6 @@
1819
from statsmodels.datasets import macrodata
1920

2021

21-
from statsmodels.compat.pandas import version as pandas_version
22-
2322
# Test precisions
2423
DECIMAL_4 = 4
2524
DECIMAL_3 = 3

0 commit comments

Comments
 (0)