diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-03-24 10:56:17 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-04-23 09:02:22 +0100 |
commit | d6abc068767d5b9cef241705536de405743ec276 (patch) | |
tree | e62e1b618733e655343cc48f1e415eede9a08701 /tests/integration/shell.py | |
parent | 10de4185bf4320b0187f637ec5a84d57882020b1 (diff) | |
download | buildstream-bschubert/fix-mktemp-usage.tar.gz |
tests: Stop using tmpdir_factory.mkdtemp("")bschubert/fix-mktemp-usage
Using "" as a directory is invalid starting from pytest 5.4.0, let's
use the __file__ name instead
Diffstat (limited to 'tests/integration/shell.py')
-rw-r--r-- | tests/integration/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py index cd93923b7..2aa386730 100644 --- a/tests/integration/shell.py +++ b/tests/integration/shell.py @@ -366,7 +366,7 @@ def test_integration_devices(cli, datafiles): @pytest.mark.parametrize("guess_element", [True, False], ids=["guess", "no-guess"]) @pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") def test_integration_external_workspace(cli, tmpdir_factory, datafiles, build_shell, guess_element): - tmpdir = tmpdir_factory.mktemp("") + tmpdir = tmpdir_factory.mktemp(os.path.basename(__file__)) project = str(datafiles) element_name = "autotools/amhello.bst" workspace_dir = os.path.join(str(tmpdir), "workspace") |