Skip to content

Commit 7f2976f

Browse files
committed
fix(TC): pytest mark xfail(PY<36) due to unstable dicts
1 parent 2f8d337 commit 7f2976f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_graphkit.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import math
55
import pickle
6+
import sys
67
from operator import add, floordiv, mul, sub
78
from pprint import pprint
89

@@ -361,6 +362,11 @@ def test_pruning_multiouts_not_override_intermediates1():
361362
assert pipeline(inputs, ["asked"]) == filtdict(exp, "asked")
362363

363364

365+
@pytest.mark.xfail(
366+
sys.version_info < (3, 6),
367+
reason="PY3.5- have unstable dicts."
368+
"E.g. https://travis-ci.org/ankostis/graphkit/jobs/595841023",
369+
)
364370
def test_pruning_multiouts_not_override_intermediates2():
365371
# Test #25: v.1.2.4 overrides intermediate data when a previous operation
366372
# must run for its other outputs (outputs asked or not)
@@ -583,6 +589,11 @@ def increment(box):
583589
assert graph({"box": [0], "a": None})["box"] == [1, 1, 2]
584590

585591

592+
@pytest.mark.xfail(
593+
sys.version_info < (3, 6),
594+
reason="PY3.5- have unstable dicts."
595+
"E.g. https://travis-ci.org/ankostis/graphkit/jobs/595793872",
596+
)
586597
def test_optional_per_function_with_same_output():
587598
# Test that the same need can be both optional and not on different operations.
588599
#

0 commit comments

Comments
 (0)