Skip to content

Commit 265c48b

Browse files
Fixed tests
1 parent ad90c56 commit 265c48b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/test_pyml2ds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
def test_xgb2ds(tmpdir):
1919
IN_PKL = os.path.join(DATA_PATH, 'xgb.pkl')
20-
OUT_SAS = os.path.join(tmpdir, 'xgb.sas')
20+
OUT_SAS = os.path.join(str(tmpdir), 'xgb.sas')
2121
EXPECTED_SAS = os.path.join(DATA_PATH, 'xgb.sas')
2222

2323
pyml2ds(IN_PKL, OUT_SAS)
@@ -28,7 +28,7 @@ def test_xgb2ds(tmpdir):
2828

2929
def test_lgb2ds(tmpdir):
3030
IN_PKL = os.path.join(DATA_PATH, 'lgb.pkl')
31-
OUT_SAS = os.path.join(tmpdir, 'lgb.sas')
31+
OUT_SAS = os.path.join(str(tmpdir), 'lgb.sas')
3232
EXPECTED_SAS = os.path.join(DATA_PATH, 'lgb.sas')
3333

3434
pyml2ds(IN_PKL, OUT_SAS)
@@ -39,7 +39,7 @@ def test_lgb2ds(tmpdir):
3939

4040
def test_gbm2ds(tmpdir):
4141
IN_PKL = os.path.join(DATA_PATH, 'gbm.pmml')
42-
OUT_SAS = os.path.join(tmpdir, 'gbm.sas')
42+
OUT_SAS = os.path.join(str(tmpdir), 'gbm.sas')
4343
EXPECTED_SAS = os.path.join(DATA_PATH, 'gbm.sas')
4444

4545
pyml2ds(IN_PKL, OUT_SAS)

0 commit comments

Comments
 (0)