You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "cdmikechen (Jira)" <ji...@apache.org> on 2022/10/04 04:11:00 UTC
[jira] [Assigned] (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 ]
cdmikechen reassigned SUBMARINE-1333:
-------------------------------------
Assignee: Yao-Ching Huang
> 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
> Assignee: Yao-Ching Huang
> Priority: Major
> Labels: pull-request-available
>
> 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`.
> For detailed info, see <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