File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def test_failure_expressions(self):
3636 ]:
3737 print (path )
3838 expr = Path .parse_str (path )
39- self .assertFalse ([ x for x in expr .match (data )] )
39+ self .assertFalse (list ( expr .match (data )) )
4040
4141 def test_unary_operator (self ):
4242 """Test the unary not in a path."""
@@ -48,7 +48,7 @@ def test_unary_operator(self):
4848 ]
4949 expr = Path .parse_str ('$[?(not @.bar)]' )
5050 self .assertEqual (Path .parse_str (str (expr )), expr )
51- self .assertTrue ([ x for x in expr .match (data )] )
51+ self .assertTrue (list ( expr .match (data )) )
5252
5353 def test_unary_boolean_operator (self ):
5454 """Test the unary not in a path."""
@@ -60,7 +60,7 @@ def test_unary_boolean_operator(self):
6060 ]
6161 expr = Path .parse_str ('$[?(not (@.bar or (@.fiz > 2 and @.biz > 2)))]' )
6262 self .assertEqual (Path .parse_str (str (expr )), expr )
63- self .assertTrue ([ x for x in expr .match (data )] )
63+ self .assertTrue (list ( expr .match (data )) )
6464
6565 def test_variadic_operator (self ):
6666 """Test a variadic operator."""
You can’t perform that action at this time.
0 commit comments