diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-28 00:32:17 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-30 23:32:47 +0100 |
commit | 51f0ead16d60c63d1b069f807e3513bba11d8947 (patch) | |
tree | 50094f57aeb7f9562341908864624199f4d7bc4a /testsuite/pyunit/libghdl | |
parent | 473ed87bb505916e74441f01508c109bf39b30a7 (diff) | |
download | ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.tar.gz ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.tar.bz2 ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.zip |
Converted string formatting to f-strings.
Diffstat (limited to 'testsuite/pyunit/libghdl')
-rw-r--r-- | testsuite/pyunit/libghdl/Comments.py | 4 | ||||
-rw-r--r-- | testsuite/pyunit/libghdl/VHDL.py | 0 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/pyunit/libghdl/Comments.py b/testsuite/pyunit/libghdl/Comments.py index 850d6137a..69571d966 100644 --- a/testsuite/pyunit/libghdl/Comments.py +++ b/testsuite/pyunit/libghdl/Comments.py @@ -41,7 +41,7 @@ class Instantiate(TestCase): while idx != file_comments.No_Comment_Index: s = file_comments.Get_Comment(f, idx) self.assertTrue(s.find(':'+name+':') >= 0, - "no :{}: in '{}'".format(name, s)) + f"no :{name}: in '{s}'") idx = file_comments.Get_Next_Comment(f, idx) def checkFlist(self, flist) -> None: @@ -83,7 +83,7 @@ class Instantiate(TestCase): file_id = name_table.Get_Identifier(str(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(filename)) + self.fail(f"Cannot read file '{filename!s}'") # Parse file = sem_lib.Load_File(sfe) diff --git a/testsuite/pyunit/libghdl/VHDL.py b/testsuite/pyunit/libghdl/VHDL.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/testsuite/pyunit/libghdl/VHDL.py |