aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-03 01:36:34 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-23 23:42:29 +0100
commitaa2bf5500676b29f64ae542553f1ecd84b2dc137 (patch)
tree2905136b7b6a70c0a86acb9e231062161a4824ee /testsuite/pyunit
parent3cca269570b68d0edb45dbe256fc6e6360909bf0 (diff)
downloadghdl-aa2bf5500676b29f64ae542553f1ecd84b2dc137.tar.gz
ghdl-aa2bf5500676b29f64ae542553f1ecd84b2dc137.tar.bz2
ghdl-aa2bf5500676b29f64ae542553f1ecd84b2dc137.zip
Some f-string changes.
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r--testsuite/pyunit/libghdl/Initialize.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/testsuite/pyunit/libghdl/Initialize.py b/testsuite/pyunit/libghdl/Initialize.py
index 7e3ace869..11bfe9a56 100644
--- a/testsuite/pyunit/libghdl/Initialize.py
+++ b/testsuite/pyunit/libghdl/Initialize.py
@@ -39,7 +39,7 @@ class Instantiate(TestCase):
file_id = name_table.Get_Identifier(str(self._filename))
sfe = files_map.Read_Source_File(name_table.Null_Identifier, file_id)
if sfe == files_map.No_Source_File_Entry:
- self.fail("Cannot read file '{!s}'".format(self._filename))
+ self.fail(f"Cannot read file '{self._filename}'")
# Parse
file = sem_lib.Load_File(sfe)
@@ -54,7 +54,7 @@ class Instantiate(TestCase):
self.assertEqual(
"counter",
entityName,
- "expected entity name 'counter', got '{}'".format(entityName),
+ f"expected entity name 'counter', got '{entityName}'",
)
elif nodes.Get_Kind(libraryUnit) == nodes.Iir_Kind.Architecture_Body:
@@ -62,9 +62,7 @@ class Instantiate(TestCase):
self.assertEqual(
"rtl",
architectureName,
- "expected architecture name 'rtl', got '{}'".format(
- architectureName
- ),
+ f"expected architecture name 'rtl', got '{architectureName}'"
)
else: