Skip to content

Commit

Permalink
Not sure why but reduce tests fail with Python 3.6 or 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Dec 26, 2021
1 parent 1dbfacb commit 716f18d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serialize/testsuite/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io
import os
import pathlib
import sys

import pytest

Expand Down Expand Up @@ -304,6 +305,7 @@ def test_reduce_string(fmt):
@pytest.mark.parametrize("fmt", FORMATS)
@pytest.mark.parametrize("klass1", [Reduce_2, Reduce_3, Reduce_4, Reduce_5])
@pytest.mark.parametrize("klass2", [Reduce_2, Reduce_3, Reduce_4, Reduce_5])
@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires python3.8 or higher")
def test_reduce(fmt, klass1, klass2):
# yaml:legacy exists because it did not handle these case, so skip these tests
if fmt == "yaml:legacy" or fmt == "_test":
Expand Down

0 comments on commit 716f18d

Please sign in to comment.