Skip to content

Commit

Permalink
Fixed hogvm failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 committed Oct 25, 2023
1 parent e6d79ed commit 40ac906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hogvm/python/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def execute_bytecode(bytecode: List[Any], fields: Dict[str, Any]) -> Any:
case Operation.NOT:
stack.append(not stack.pop())
case Operation.AND:
stack.append(all(stack.pop() for _ in range(next(iterator))))
stack.append(all([stack.pop() for _ in range(next(iterator))])) # noqa: C419
case Operation.OR:
stack.append(any(stack.pop() for _ in range(next(iterator))))
stack.append(any([stack.pop() for _ in range(next(iterator))])) # noqa: C419
case Operation.PLUS:
stack.append(stack.pop() + stack.pop())
case Operation.MINUS:
Expand Down

0 comments on commit 40ac906

Please sign in to comment.