tests: avoid syntax deprecated in python 3.11

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-07-12 11:44:05 +02:00
parent 59eb676441
commit bca49d9143

View file

@ -85,7 +85,5 @@ def test_spec(tomlfile, target, tmpdir):
path.write_text(spec)
else:
expected = resources.read_text('rust2rpm.tests.samples',
f'{crate}.{target}.spec')
expected = resources.files('rust2rpm.tests.samples').joinpath(f'{crate}.{target}.spec').read_text()
assert spec == expected