TINKERPOP-1857 Added ignore for a has() test in the python GLV tests Created TINKERPOP-1859 regarding bad bytecode generation for complex P instances
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/36719de6 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/36719de6 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/36719de6 Branch: refs/heads/TINKERPOP-1857 Commit: 36719de69e610276381847a82e79e7302bbb8f99 Parents: aaf0b32 Author: Stephen Mallette <[email protected]> Authored: Thu Dec 28 15:03:22 2017 -0500 Committer: Stephen Mallette <[email protected]> Committed: Thu Feb 1 08:14:57 2018 -0500 ---------------------------------------------------------------------- gremlin-python/src/main/jython/radish/feature_steps.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/36719de6/gremlin-python/src/main/jython/radish/feature_steps.py ---------------------------------------------------------------------- diff --git a/gremlin-python/src/main/jython/radish/feature_steps.py b/gremlin-python/src/main/jython/radish/feature_steps.py index d5d3560..b61d5e0 100644 --- a/gremlin-python/src/main/jython/radish/feature_steps.py +++ b/gremlin-python/src/main/jython/radish/feature_steps.py @@ -43,7 +43,8 @@ project = __.project tail = __.tail ignores = [ - "g.V(v1Id).out().inject(v2).values(\"name\")" # bug in attachment won't connect v2 + "g.V(v1Id).out().inject(v2).values(\"name\")", # bug in attachment won't connect v2 + "g.V().hasLabel(\"person\").has(\"age\", P.not(P.lte(d10).and(P.not(P.between(d11, d20)))).and(P.lt(d29).or(P.eq(d35)))).values(\"name\")" # TINKERPOP-1859 ] @@ -92,11 +93,17 @@ def translate_traversal(step): @when("iterated to list") def iterate_the_traversal(step): + if step.context.ignore: + return + step.context.result = map(lambda x: _convert_results(x), step.context.traversal.toList()) @when("iterated next") def next_the_traversal(step): + if step.context.ignore: + return + step.context.result = map(lambda x: _convert_results(x), step.context.traversal.next())
