Skip to content

Commit 25655cd

Browse files
committed
disable typing test in Python 3.8 where tuple subclasses can't be subscripted
1 parent 7ed2e11 commit 25655cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydra/utils/tests/test_typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import itertools
3+
import sys
34
import typing as ty
45
from pathlib import Path
56
import tempfile
@@ -717,6 +718,7 @@ def test_generic_is_subclass3():
717718
assert not TypeParser.is_subclass(ty.List[float], ty.List[int])
718719

719720

721+
@pytest.mark.skipIf(sys.version_info.minor < 9, "Cannot subscript tuple in < Py3.9")
720722
def test_generic_is_subclass4():
721723
class MyTuple(tuple):
722724
pass

0 commit comments

Comments
 (0)