aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit
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
parent7f4ed5db5e0e9c0967000d50a4f3f14e88bf9dd7 (diff)
downloadghdl-6acaf4b6baba21f8eca7520f518c62ffd75abd04.tar.gz
ghdl-6acaf4b6baba21f8eca7520f518c62ffd75abd04.tar.bz2
ghdl-6acaf4b6baba21f8eca7520f518c62ffd75abd04.zip
Minor changes.
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r--testsuite/pyunit/dom/Expressions.py8
-rw-r--r--testsuite/pyunit/dom/Literals.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/pyunit/dom/Expressions.py b/testsuite/pyunit/dom/Expressions.py
index 6f64c6c86..21b0cd03b 100644
--- a/testsuite/pyunit/dom/Expressions.py
+++ b/testsuite/pyunit/dom/Expressions.py
@@ -103,8 +103,8 @@ class Expressions(TestCase):
# default: Expression = self.parse(filename, constantDeclartion)
#
# # Start checks
- # self.assertTrue(isinstance(default, AbsoluteExpression))
- # self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol))
+ # self.assertIsInstance(default, AbsoluteExpression)
+ # self.assertIsInstance(default.Operand, SimpleObjectOrFunctionCallSymbol)
# self.assertTrue(default.Operand.SymbolName == "-3")
# def test_Aggregare(self):
@@ -130,6 +130,6 @@ class Expressions(TestCase):
# package: Package = design.Documents[0].Packages[0]
# item: Constant = package.DeclaredItems[0]
# default: Expression = item.DefaultExpression
- # self.assertTrue(isinstance(default, InverseExpression))
- # self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol))
+ # self.assertIsInstance(default, InverseExpression)
+ # self.assertIsInstance(default.Operand, SimpleObjectOrFunctionCallSymbol)
# self.assertTrue(default.Operand.SymbolName == "true")
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])