Skip to content

Fake cupy.random: no wrapped dunder names - #129

Merged
max-models merged 1 commit into
develfrom
fake-random-dunders
Nov 3, 2026
Merged

max-models merged 1 commit into
develfrom
fake-random-dunders

Conversation

@max-models

Copy link
Copy Markdown
Owner
  • The fake cupy.random answered every attribute with a wrapped NumPy function, __file__ too, which broke module introspection: importing astropy after cunumpy failed with 'function' object has no attribute 'endswith'.
  • Dunder names now raise AttributeError, as for the fake arrays; a test in a fake-CuPy subprocess guards it.

@max-models
max-models merged commit bf29d23 into devel Nov 3, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant