You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2018/02/14 20:34:41 UTC

[19/31] tinkerpop git commit: TINKERPOP-1857 Added ignore for a has() test in the python GLV tests

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/1f2530e8
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1f2530e8
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1f2530e8

Branch: refs/heads/TINKERPOP-1857
Commit: 1f2530e84c1b75e9ab8df775835be9b4afc59a35
Parents: c06e8a2
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Dec 28 15:03:22 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Feb 14 15:34:09 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/1f2530e8/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())