From 9a4fd9787e9946bbc6412522314c7b6aa56c8e03 Mon Sep 17 00:00:00 2001 From: dreamer Date: Sun, 1 Dec 2024 11:10:40 +0100 Subject: [PATCH] cleanup --- hvcc/__init__.py | 1 - hvcc/interpreters/pd2hv/pd2hv.py | 3 --- tests/framework/base_test.py | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/hvcc/__init__.py b/hvcc/__init__.py index 564f7c25..c2513eb0 100644 --- a/hvcc/__init__.py +++ b/hvcc/__init__.py @@ -61,7 +61,6 @@ def add_error( results["hvcc"] = CompilerResp(stage="hvcc", notifs=CompilerNotif( has_error=True, - exception=None, errors=[CompilerMsg(message=error)], )) return results diff --git a/hvcc/interpreters/pd2hv/pd2hv.py b/hvcc/interpreters/pd2hv/pd2hv.py index 7256de93..79153712 100644 --- a/hvcc/interpreters/pd2hv/pd2hv.py +++ b/hvcc/interpreters/pd2hv/pd2hv.py @@ -70,7 +70,6 @@ def compile( obj_counter=parser.obj_counter, notifs=CompilerNotif( has_error=True, - exception=None, errors=notices.errors, warnings=notices.warnings ), @@ -98,8 +97,6 @@ def compile( stage="pd2hv", obj_counter=parser.obj_counter, notifs=CompilerNotif( - has_error=False, - exception=None, warnings=notices.warnings ), in_dir=os.path.dirname(pd_path), diff --git a/tests/framework/base_test.py b/tests/framework/base_test.py index 0be83814..a455e5ab 100644 --- a/tests/framework/base_test.py +++ b/tests/framework/base_test.py @@ -51,7 +51,7 @@ def _run_hvcc( pd_path, expect_warning: bool = False, expect_fail: bool = False, - expected_enum: NotificationEnum = NotificationEnum.WARNING_GENERIC + expected_enum: NotificationEnum = NotificationEnum.EMPTY ) -> Optional[str]: """Run hvcc on a Pd file. Returns the output directory. """