From da9272cf75a233e246fbc7bc0b984b3df240ebdf Mon Sep 17 00:00:00 2001 From: Adam Janovsky Date: Thu, 10 Feb 2022 17:51:43 +0100 Subject: MyPy issue 1422 fixed with MyPy 0.920 --- tests/test_cc_heuristics.py | 2 +- tests/test_cc_txt_processing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_cc_heuristics.py b/tests/test_cc_heuristics.py index 7d3bc057..ec8a49ed 100644 --- a/tests/test_cc_heuristics.py +++ b/tests/test_cc_heuristics.py @@ -15,7 +15,7 @@ from sec_certs.sample.protection_profile import ProtectionProfile class TestCommonCriteriaHeuristics(TestCase): - dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json" # type: ignore # mypy issue #1422 + dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json" data_dir_path: ClassVar[Path] = dataset_json_path.parent tmp_dir: ClassVar[tempfile.TemporaryDirectory] cc_dset: CCDataset diff --git a/tests/test_cc_txt_processing.py b/tests/test_cc_txt_processing.py index cc1cb23c..55d1c494 100644 --- a/tests/test_cc_txt_processing.py +++ b/tests/test_cc_txt_processing.py @@ -10,7 +10,7 @@ from sec_certs.sample.common_criteria import CommonCriteriaCert class TestCommonCriteriaTextProcessing(TestCase): - dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json" # type: ignore # mypy issue #1422 + dataset_json_path: ClassVar[Path] = Path(tests.data.test_cc_heuristics.__path__[0]) / "vulnerable_dataset.json" data_dir_path: ClassVar[Path] = dataset_json_path.parent tmp_dir: ClassVar[tempfile.TemporaryDirectory] cc_dset: CCDataset -- cgit v1.3.1