Skip to content

Commit bc3cbd9

Browse files
committed
TORCHINDUCTOR_CACHE_DIR
1 parent daacd5d commit bc3cbd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tests_pytorch/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def restore_env_variables():
9393
"TF_CPP_MIN_LOG_LEVEL",
9494
"TF_GRPC_DEFAULT_OPTIONS",
9595
"XLA_FLAGS",
96+
"TORCHINDUCTOR_CACHE_DIR", # leaked by torch.compile
9697
}
9798
leaked_vars.difference_update(allowlist)
9899
assert not leaked_vars, f"test is leaking environment variable(s): {set(leaked_vars)}"

0 commit comments

Comments
 (0)