Skip to content

Commit 54f407c

Browse files
committed
Skip ForwardRef tests if <3.7
1 parent 5388bcf commit 54f407c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_forward_refs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import typing as T
23
import uuid
34

@@ -6,6 +7,11 @@
67

78
from graphene_pydantic import PydanticObjectType
89

10+
import pytest
11+
12+
if sys.version_info < (3, 7):
13+
pytest.skip("ForwardRefs feature requires Python 3.7+")
14+
915

1016
class FooModel(pydantic.BaseModel):
1117
id: uuid.UUID

0 commit comments

Comments
 (0)