aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/dom/Literals.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-29 19:10:33 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-01 06:39:46 +0200
commit6acaf4b6baba21f8eca7520f518c62ffd75abd04 (patch)
treef0385151319a67703cf4fed45641d5ce437598ad /testsuite/pyunit/dom/Literals.py
parent7f4ed5db5e0e9c0967000d50a4f3f14e88bf9dd7 (diff)
downloadghdl-6acaf4b6baba21f8eca7520f518c62ffd75abd04.tar.gz
ghdl-6acaf4b6baba21f8eca7520f518c62ffd75abd04.tar.bz2
ghdl-6acaf4b6baba21f8eca7520f518c62ffd75abd04.zip
Minor changes.
Diffstat (limited to 'testsuite/pyunit/dom/Literals.py')
-rw-r--r--testsuite/pyunit/dom/Literals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/pyunit/dom/Literals.py b/testsuite/pyunit/dom/Literals.py
index 905ea7749..9dc40d4cb 100644
--- a/testsuite/pyunit/dom/Literals.py
+++ b/testsuite/pyunit/dom/Literals.py
@@ -78,8 +78,8 @@ class Literals(TestCase):
self.assertEqual(len(package.DeclaredItems), len(expected))
for i in range(len(expected)):
item: Constant = package.DeclaredItems[i]
- self.assertTrue(isinstance(item, Constant))
+ self.assertIsInstance(item, Constant)
self.assertTrue(item.Identifier == "c{}".format(i))
self.assertTrue(str(item.SubType.SymbolName) == "integer")
- self.assertTrue(isinstance(item.DefaultExpression, IntegerLiteral))
+ self.assertIsInstance(item.DefaultExpression, IntegerLiteral)
self.assertTrue(item.DefaultExpression.Value == expected[i])