]> git.ipfire.org Git - thirdparty/systemd.git/commit
test_ukify: use Path-based fixtures
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Dec 2023 18:01:27 +0000 (19:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Dec 2023 18:17:40 +0000 (19:17 +0100)
commit6f1df1ff3cf399f3b69a3c15b348e2337bc49a5b
tree753306f152aec7eaa26cc5786a8f46432abeedb3
parent4ae703b2b50861556f444dff5f3c07b05fcaae39
test_ukify: use Path-based fixtures

Quoting https://docs.pytest.org/en/stable/how-to/tmp_path.html#the-default-base-temporary-directory:
> The tmpdir and tmpdir_factory fixtures are similar to tmp_path and
> tmp_path_factory, but use/return legacy py.path.local objects rather than
> standard pathlib.Path objects.
>
> These days, it is preferred to use tmp_path and tmp_path_factory.
src/ukify/test/test_ukify.py