Skip to content

Commit

Permalink
enable no:legacypath pytest option
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Feb 28, 2024
1 parent 70d8a3e commit 6f20dcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci_watson/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def pytest_runtest_setup(item):


@pytest.fixture(scope='function')
def _jail(tmpdir):
def _jail(tmp_path):
"""Perform test in a pristine temporary working directory."""
old_dir = os.getcwd()
os.chdir(tmpdir.strpath)
os.chdir(tmp_path)
try:
yield tmpdir.strpath
yield str(tmp_path)
finally:
os.chdir(old_dir)

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ junit_family = xunit2
filterwarnings =
error
ignore:numpy.ndarray size changed:RuntimeWarning
addopts = "-p no:legacypth"

0 comments on commit 6f20dcd

Please sign in to comment.