Skip to content

Commit

Permalink
Include xp name in complex_dtypes() error
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Sep 27, 2022
1 parent a5dd305 commit 927b80a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hypothesis-python/src/hypothesis/extra/array_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ def complex_dtypes(self):
except KeyError as e:
raise AttributeError(
"You attempted to access 'complex_dtypes', but it is not "
f"available for api_version='{self.api_version}'."
f"available for api_version='{self.api_version}' of "
f"xp={self.name}."
) from e

def __repr__(self):
Expand Down

0 comments on commit 927b80a

Please sign in to comment.