Test/autotailor: fix Python 3.6 compatibility

The test case is skipped in the upstream CI, because the `autotailor`
executable is not installed in the `osbuild-ci` image. This will not
be the case in the future and the CI run will reveal a Python 3.6
incompatibility in the test implementation. Fix it.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-11-22 14:32:03 +01:00 committed by Michael Vogt
parent 4c2b8db0d7
commit 36a60d1c29

View file

@ -212,7 +212,7 @@ def test_oscap_autotailor_json_profile_override(fake_json_input, stage_module, e
["oscap", "info", "--profiles", results_file],
stdout=subprocess.PIPE,
check=True,
text=True,
encoding="utf-8",
)
assert f"Id: {expected_profile}\n" in result.stdout