mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
JaxTestCase: prevent leakage of global state
This commit is contained in:
parent
18a661497c
commit
2afea82908
@ -929,7 +929,7 @@ class JaxTestCase(parameterized.TestCase):
|
||||
super().setUp()
|
||||
self._original_config = {}
|
||||
for key, value in self._default_config.items():
|
||||
self._original_config[key] = getattr(config, key)
|
||||
self._original_config[key] = config._read(key)
|
||||
config.update(key, value)
|
||||
|
||||
# We use the adler32 hash for two reasons.
|
||||
|
Loading…
x
Reference in New Issue
Block a user