Skip to content

Commit

Permalink
test: update tests to use the built-in py export (#234)
Browse files Browse the repository at this point in the history
It was introduced recently in #229
  • Loading branch information
qartik authored May 31, 2024
1 parent 1025937 commit 7a45635
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from guppylang.decorator import guppy
from guppylang.module import GuppyModule
from guppylang.prelude.builtins import py
from guppylang.prelude.quantum import qubit, quantum
from tests.integration.util import py
from tests.util import compile_guppy

tket2_installed = find_spec("tket2") is not None
Expand Down
8 changes: 0 additions & 8 deletions tests/integration/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from typing import Any


class Decorator:
def __matmul__(self, other):
return None
Expand All @@ -9,8 +6,3 @@ def __matmul__(self, other):
# Dummy names to import to avoid errors for `_@functional` pseudo-decorator:
functional = Decorator()
_ = Decorator()


def py(*args: Any) -> Any:
"""Dummy function to import to avoid errors for `py(...)` expressions"""
raise NotImplementedError

0 comments on commit 7a45635

Please sign in to comment.