Skip to content

Commit a3bf8da

Browse files
authored
Merge pull request #606 from stan-dev/cleanup-pytest
Remove extra test setup code
2 parents 842a99f + a48255a commit a3bf8da

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

test/conftest.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""The global configuration for the test suite"""
2-
import atexit
32
import os
4-
import shutil
53
import subprocess
64

75
import pytest
@@ -15,16 +13,8 @@
1513

1614
@pytest.fixture(scope='session', autouse=True)
1715
def cleanup_test_files():
18-
19-
import cmdstanpy
20-
21-
# see https://github.com/pytest-dev/pytest/issues/5502
22-
atexit.unregister(cmdstanpy._cleanup_tmpdir)
23-
16+
"""Remove compiled models and output files after test run."""
2417
yield
25-
26-
shutil.rmtree(cmdstanpy._TMPDIR, ignore_errors=True)
27-
2818
subprocess.Popen(
2919
['git', 'clean', '-fX', DATAFILES_PATH],
3020
stdout=subprocess.DEVNULL,

0 commit comments

Comments
 (0)