Skip to content

Commit 87482cd

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents ae22b21 + cb93dd5 commit 87482cd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/test_dataclass_style.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ class Foo(Structure):
278278
a: list[Bar]
279279

280280

281+
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")
281282
def test_generic_typevar_is_ignored():
282283
class Foo(Structure):
283284
a: List[T]

tests/test_jsonschema_draft4_style_reuse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import sys
2+
3+
import pytest
14
from pytest import raises
25

36
from typedpy import Structure, AllOf, AnyOf, OneOf, Integer, String, Positive, Number, NotField, Field, Array
@@ -164,6 +167,7 @@ def test_embeded_structure_valid():
164167
assert Example(g=Foo(s="abc")).g.s == "abc"
165168

166169

170+
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")
167171
def test_with_function():
168172
def func() -> Field:
169173
return Integer(minimum=10)
@@ -175,6 +179,7 @@ class Foo(Structure):
175179
assert foo.any[0] == 15
176180

177181

182+
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")
178183
def test_with_function_err():
179184
def func() -> Field:
180185
return Integer(minimum=10)

0 commit comments

Comments
 (0)