You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "Yao-Ching Huang (Jira)" <ji...@apache.org> on 2022/10/01 03:34:00 UTC
[jira] [Updated] (SUBMARINE-1333) Replace pytest tmpdir with tmp_path fixture
[ https://issues.apache.org/jira/browse/SUBMARINE-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yao-Ching Huang updated SUBMARINE-1333:
---------------------------------------
Description:
Pytest provides both `tmp_path` and `tmpdir` fixtures to indicate the temporary directory.
Nowadays, it's preferred to use the `tmp_path` fixture which returns a `pathlib.Path` instead of the legacy `tmpdir` which returns `py.path.local`.
pytest 7.1.x doc: <https://docs.pytest.org/en/7.1.x/how-to/tmp_path.html>
was:
Pytest provides both `tmp_path` and `tmpdir` fixtures to indicate the temporary directory.
Nowadays, it's preferred to use the `tmp_path` fixture which returns a `pathlib.Path` instead of the legacy `tmpdir` which returns `py.path.local`.
> Replace pytest tmpdir with tmp_path fixture
> -------------------------------------------
>
> Key: SUBMARINE-1333
> URL: https://issues.apache.org/jira/browse/SUBMARINE-1333
> Project: Apache Submarine
> Issue Type: Test
> Reporter: Yao-Ching Huang
> Priority: Major
>
> Pytest provides both `tmp_path` and `tmpdir` fixtures to indicate the temporary directory.
> Nowadays, it's preferred to use the `tmp_path` fixture which returns a `pathlib.Path` instead of the legacy `tmpdir` which returns `py.path.local`.
> pytest 7.1.x doc: <https://docs.pytest.org/en/7.1.x/how-to/tmp_path.html>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org