From ddcb396495cc17cc99fce5d4b5793abce76107b8 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 28 Jun 2023 12:02:14 +0200 Subject: [PATCH] tests: avoid Python3 f-string in "test-cloud-meta-mock.py" It breaks tests on Debian:9, which use Python2 still. Fixes: e1f3acf3a64e ('test-cloud-meta-mock: allow configuring the provider that are mimicked') --- tools/test-cloud-meta-mock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-cloud-meta-mock.py b/tools/test-cloud-meta-mock.py index 1545bc513b..bc0a829ec7 100755 --- a/tools/test-cloud-meta-mock.py +++ b/tools/test-cloud-meta-mock.py @@ -45,7 +45,7 @@ def _s_to_bool(s): if isinstance(s, int): if s in [0, 1]: return s == 1 - raise ValueError(f'Not a boolean value ("{s0}")') + raise ValueError('Not a boolean value ("%s")' % (s0,)) DEBUG = _s_to_bool(os.environ.get("NM_TEST_CLOUD_SETUP_MOCK_DEBUG", "0"))