Skip to content

Commit

Permalink
Fix two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Nov 19, 2020
1 parent 622b533 commit 39b4281
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ def test_is_generic_unsupported_python():
with patch('mashumaro.meta.helpers.PY_36', False):
with patch('mashumaro.meta.helpers.PY_37', False):
with patch('mashumaro.meta.helpers.PY_38', False):
with pytest.raises(NotImplementedError):
is_generic(int)
with patch('mashumaro.meta.helpers.PY_39', False):
with pytest.raises(NotImplementedError):
is_generic(int)


def test_is_class_var_unsupported_python():
with patch('mashumaro.meta.helpers.PY_36', False):
with patch('mashumaro.meta.helpers.PY_37', False):
with patch('mashumaro.meta.helpers.PY_38', False):
with pytest.raises(NotImplementedError):
is_class_var(int)
with patch('mashumaro.meta.helpers.PY_39', False):
with pytest.raises(NotImplementedError):
is_class_var(int)


def test_is_init_var_unsupported_python():
Expand Down

0 comments on commit 39b4281

Please sign in to comment.