Use alternate quoting for older Python versions

Since Python 3.12, strings such as:

f"test_{object_name.replace(".", "_")}_class.py"

are allowed but older versions require single quotes around the dot and
underscore within the double quoted string.

Should quell CI error on Ubuntu Noble.
pull/1808/head
Michael Morgan 2025-07-07 12:32:56 -05:00 zatwierdzone przez Nate Bargmann
rodzic df95e93940
commit 4da91f1a28
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FB2C5130D55A8819
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -59,7 +59,7 @@ DO NOT EDIT this autogenerated file, run "make generate-pytests" instead
"""
import Hamlib
'''
filename = f"test_{object_name.replace(".", "_")}_class.py"
filename = f"test_{object_name.replace('.', '_')}_class.py"
class_source = inspect.getsource(TestClass)
expected_callables = repr(callables).replace(" ", "\n")
expected_properties = repr(properties).replace(" ", "\n")