summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2021-09-19 19:07:08 -1000
committerMatthew Peveler <matt.peveler@gmail.com>2021-09-19 19:07:08 -1000
commitc550423e49463c5af25a3147aedca4da9fe24cd2 (patch)
treebb7a2ab66b66fd25a96ac2295025c52c4c9e887d
parent8336c4882a7f01f82b69512eb121948ed719c9bc (diff)
downloadasciidoc-py3-utils.tar.gz
Fix typing error on <3.9utils
-rw-r--r--tests/test_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 1609440..eb32fbf 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,6 +1,6 @@
import pytest
from pytest_mock import MockerFixture
-from typing import Optional
+from typing import Optional, Tuple
from asciidoc import utils
@@ -40,7 +40,7 @@ def test_strip_quotes(input: str, expected: str) -> None:
(('', 'a', 'b', ''), ('a', 'b', '')),
),
)
-def test_lstrip_list(input: tuple[str, ...], expected: tuple[str, ...]) -> None:
+def test_lstrip_list(input: Tuple[str, ...], expected: Tuple[str, ...]) -> None:
assert utils.lstrip_list(input) == expected
@@ -53,7 +53,7 @@ def test_lstrip_list(input: tuple[str, ...], expected: tuple[str, ...]) -> None:
(('', 'a', 'b', ''), ('', 'a', 'b')),
),
)
-def test_rstrip_list(input: tuple[str, ...], expected: tuple[str, ...]) -> None:
+def test_rstrip_list(input: Tuple[str, ...], expected: Tuple[str, ...]) -> None:
assert utils.rstrip_list(input) == expected
@@ -66,7 +66,7 @@ def test_rstrip_list(input: tuple[str, ...], expected: tuple[str, ...]) -> None:
(('', 'a', 'b', ''), ('a', 'b')),
),
)
-def test_strip_list(input: tuple[str, ...], expected: tuple[str, ...]) -> None:
+def test_strip_list(input: Tuple[str, ...], expected: Tuple[str, ...]) -> None:
assert utils.strip_list(input) == expected