rpm-software-management / rpmlint

Tool for checking common errors in rpm packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use tmp_path instead of tmpdir

afrid18 opened this issue · comments

Pytest documentation suggests that we should use tmp_path instead of tmpdir. As tmpdir returns a py.path.local object when compared to tmp_path uses stdlib pathlib version.

Refernece to official docs from pytest.
Stackoverflow answer recommendation.