Skip to content

Commit

Permalink
Remove caching for make_mock_xp() test util
Browse files Browse the repository at this point in the history
As returned `xp` is mutable, a cached result can be modified and persist for
other calls of `make_mock_xp()`.
  • Loading branch information
honno committed Jan 13, 2023
1 parent 95244a6 commit b051c3e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hypothesis-python/tests/array_api/test_partial_adoptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
MOCK_WARN_MSG = f"determine.*{mock_xp.__name__}.*Array API"


@lru_cache()
def make_mock_xp(*, exclude: Tuple[str, ...] = ()) -> SimpleNamespace:
xp = copy(mock_xp)
assert isinstance(exclude, tuple) # sanity check
Expand Down

0 comments on commit b051c3e

Please sign in to comment.