Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/unit/test_patch_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def _getmembers(obj):
monkeypatch.setattr(
triton_frontend.tl.core, "is_builtin", lambda member: member is sentinel
)
# The frontend caches each object's builtin names on first use; under the
# fake getmembers it would cache almost none, and every later unpatch_lang
# in the process would then leave triton.language patched.
monkeypatch.setattr(triton_frontend.frontend, "_triton_builtin_attr_cache", {})

scope = triton_frontend.frontend._triton_snapshot_scope(_dummy_kernel)
replacement = lambda *_args, **_kwargs: None
Expand Down
Loading