From 7ecd237edc187a6067e764266a84d70d8d8f23ac Mon Sep 17 00:00:00 2001 From: Austin Cory Bart Date: Tue, 19 Mar 2024 13:39:17 -0400 Subject: [PATCH] Disable test that doesn't work in 3.7 and below --- tests/test_assertion_dataclasses.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_assertion_dataclasses.py b/tests/test_assertion_dataclasses.py index edd855a..852105b 100644 --- a/tests/test_assertion_dataclasses.py +++ b/tests/test_assertion_dataclasses.py @@ -11,6 +11,7 @@ from pedal.assertions.commands import * from pedal.assertions.runtime import * from pedal.types.new_types import DictType, LiteralStr, StrType +from pedal.utilities.system import IS_AT_LEAST_PYTHON_38 from tests.execution_helper import Execution, ExecutionTestCase, SUCCESS_MESSAGE @@ -98,6 +99,7 @@ class Dog: self.assertFeedback(e, """Incorrect Arity The constructor function Dog was given the wrong number of arguments. You should have had 2 arguments, but instead you had 1 arguments.""") + @unittest.skipIf(not IS_AT_LEAST_PYTHON_38, "Cannot subscript literals in Python 3.7") def test_weird_forecast_issue(self): @dataclass class WeatherOptions: