Skip to content

Commit

Permalink
test: remove flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 13, 2024
1 parent 0abbda8 commit 5c2b71a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ibis/common/tests/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ def test_annotations_are_not_hashable():
hash(a)


def test_argument_repr():
argument = Argument(is_int, typehint=int, default=None)
assert repr(argument) == (
"Argument(pattern=InstanceOf(type=<class 'int'>), default=None, "
"typehint=<class 'int'>, kind=<_ParameterKind.POSITIONAL_OR_KEYWORD: 1>)"
)


def test_default_argument():
annotation = Argument(pattern=lambda x, context: int(x), default=3)
assert annotation.pattern.match(1, {}) == 1
Expand Down

0 comments on commit 5c2b71a

Please sign in to comment.