Skip to content

Commit 0800c7b

Browse files
committed
Skip parameterized standard collections tests for Python versions < 3.9
1 parent a4c6701 commit 0800c7b

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

tests/test_integration.py

+11-14
Original file line numberDiff line numberDiff line change
@@ -122,23 +122,20 @@ def test_both_assigned_okay(self):
122122
self.assertEqual(args.arg_str_required, 'tappy')
123123
self.assertEqual(args.arg_list_str_required, ['hi', 'there'])
124124

125-
126-
# TODO: need to implement list[str] etc.
127-
class ParameterizedStandardCollectionTap(Tap):
128-
arg_list_str: list[str]
129-
arg_list_int: list[int]
130-
arg_list_int_default: list[int] = [1, 2, 5]
131-
arg_set_float: set[float]
132-
arg_set_str_default: set[str] = {'one', 'two', 'five'}
133-
arg_tuple_int: tuple[int, ...]
134-
arg_tuple_float_default: tuple[float, float, float] = (1.0, 2.0, 5.0)
135-
arg_tuple_str_override: tuple[str, str] = ('hi', 'there')
136-
arg_optional_list_int: Optional[list[int]] = None
137-
138-
139125
class ParameterizedStandardCollectionTests(TestCase):
140126
@unittest.skipIf(sys.version_info < (3, 9), 'Parameterized standard collections (e.g., list[int]) introduced in Python 3.9')
141127
def test_parameterized_standard_collection(self):
128+
class ParameterizedStandardCollectionTap(Tap):
129+
arg_list_str: list[str]
130+
arg_list_int: list[int]
131+
arg_list_int_default: list[int] = [1, 2, 5]
132+
arg_set_float: set[float]
133+
arg_set_str_default: set[str] = {'one', 'two', 'five'}
134+
arg_tuple_int: tuple[int, ...]
135+
arg_tuple_float_default: tuple[float, float, float] = (1.0, 2.0, 5.0)
136+
arg_tuple_str_override: tuple[str, str] = ('hi', 'there')
137+
arg_optional_list_int: Optional[list[int]] = None
138+
142139
arg_list_str = ['a', 'b', 'pi']
143140
arg_list_int = [-2, -5, 10]
144141
arg_set_float = {3.54, 2.235}

0 commit comments

Comments
 (0)