Revert "Fixes for CPython int/float tests (#155978)"

This reverts commit 216bd6091ec52865052282eced7e6d5d2a4b4fb4.

Reverted https://github.com/pytorch/pytorch/pull/155978 on behalf of https://github.com/huydhn due to Some tests are still failing in trunk ([comment](https://github.com/pytorch/pytorch/pull/155978#issuecomment-3014185210))
This commit is contained in:
PyTorch MergeBot
2025-06-27 19:39:41 +00:00
parent 7c51619e7f
commit 0decd966af
61 changed files with 13 additions and 55 deletions

View File

@ -374,7 +374,7 @@ def raise_observed_exception(
# stack and raise the exception.
exception_vt = BuiltinVariable(exc_type).call_function(tx, args or [], kwargs or {}) # type: ignore[arg-type]
tx.exn_vt_stack.set_current_exception(exception_vt)
raise get_dynamo_observed_exception(exc_type)
raise observed_exception_map[exc_type]
def handle_observed_exception(tx: Any) -> None: