tests: avoid syntax deprecated in python 3.11
This commit is contained in:
parent
59eb676441
commit
bca49d9143
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue