Skip to content

Commit

Permalink
Skip 2 tests in Python<3.8 - not sure why they fail in 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
idanmiara committed Nov 29, 2022
1 parent 9baac9d commit 76ffc0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/core/test_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from collections.abc import MutableMapping
from enum import Enum
from datetime import date
Expand Down Expand Up @@ -198,6 +199,7 @@ class X:
assert result == X(c=["test"])


@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires python3.8")
def test_from_dict_with_type_hooks_and_init_vars():
@dataclass
class X:
Expand Down
2 changes: 2 additions & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from dataclasses import dataclass, InitVar
from typing import Optional, Union, List, Any, Dict, NewType, TypeVar, Generic, Collection, Tuple, Type

Expand Down Expand Up @@ -474,6 +475,7 @@ def test_is_set_union():
assert not is_set(Union[int, float])


@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires python3.8")
def test_get_type_hint_for_init_var():
@dataclass
class X:
Expand Down

0 comments on commit 76ffc0e

Please sign in to comment.