aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/dom/Literals.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/Literals.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/Literals.py')
-rw-r--r--testsuite/pyunit/dom/Literals.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/testsuite/pyunit/dom/Literals.py b/testsuite/pyunit/dom/Literals.py
index 9ab709195..ebd702f5e 100644
--- a/testsuite/pyunit/dom/Literals.py
+++ b/testsuite/pyunit/dom/Literals.py
@@ -30,11 +30,11 @@
#
# 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.NonStandard import Design, Document
+from pyGHDL.dom.NonStandard import Design, Document
from pyGHDL.dom.Object import Constant
from pyGHDL.dom.Literal import IntegerLiteral
@@ -49,16 +49,20 @@ class Literals(TestCase):
_root = Path(__file__).resolve().parent.parent
def test_IntegerLiteral(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 : integer := 0;
constant c1 : integer := 1;
constant c2 : integer := 1024;
constant c3 : integer := 1048576;
end package;
- """)
+ """
+ )
expected = (0, 1, 1024, 1048576)
with self._filename.open(mode="w", encoding="utf-8") as file: