aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/dom/Expressions.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-23 00:41:40 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-23 00:41:40 +0200
commit957566f47af6a5a10d38cc5f27551019165ea2f0 (patch)
tree1706bfb480a838067e6667d6d7b1aa6d54024cdc /testsuite/pyunit/dom/Expressions.py
parent513ee743a2f633ed01486621b4684c0608d34219 (diff)
downloadghdl-957566f47af6a5a10d38cc5f27551019165ea2f0.tar.gz
ghdl-957566f47af6a5a10d38cc5f27551019165ea2f0.tar.bz2
ghdl-957566f47af6a5a10d38cc5f27551019165ea2f0.zip
Formatted pyunit tests via black.
Diffstat (limited to 'testsuite/pyunit/dom/Expressions.py')
-rw-r--r--testsuite/pyunit/dom/Expressions.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/testsuite/pyunit/dom/Expressions.py b/testsuite/pyunit/dom/Expressions.py
index bc45b3cdf..f9c066f52 100644
--- a/testsuite/pyunit/dom/Expressions.py
+++ b/testsuite/pyunit/dom/Expressions.py
@@ -30,14 +30,14 @@
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ============================================================================
-from pathlib import Path
+from pathlib import Path
from textwrap import dedent
from unittest import TestCase
from pyGHDL.dom.DesignUnit import Package
from pyGHDL.dom import Expression
-from pyGHDL.dom.NonStandard import Design, Document
+from pyGHDL.dom.NonStandard import Design, Document
from pyGHDL.dom.Symbol import SimpleObjectOrFunctionCallSymbol
from pyGHDL.dom.Object import Constant
from pyGHDL.dom.Expression import InverseExpression
@@ -52,13 +52,17 @@ class Expressions(TestCase):
_root = Path(__file__).resolve().parent.parent
def test_NotExpression(self):
- self._filename: Path = self._root / "{className}.vhdl".format(className=self.__class__.__name__)
+ self._filename: Path = self._root / "{className}.vhdl".format(
+ className=self.__class__.__name__
+ )
- sourceCode = dedent("""\
+ sourceCode = dedent(
+ """\
package package_1 is
constant c0 : boolean := not true;
end package;
- """)
+ """
+ )
with self._filename.open(mode="w", encoding="utf-8") as file:
file.write(sourceCode)