diff --git a/tests/test_interpolation.py b/tests/test_interpolation.py index 70d6f5236..1ca63766e 100644 --- a/tests/test_interpolation.py +++ b/tests/test_interpolation.py @@ -395,7 +395,7 @@ def test_resolver_cache_1(restore_resolvers: Any) -> None: # the program execution. OmegaConf.new_register_resolver("random", lambda _: random.randint(0, 10000000)) c = OmegaConf.create({"k": "${random:__}"}) - assert c.k == c.k + assert getattr(c, "k") == getattr(c, "k") def test_resolver_cache_1_legacy(restore_resolvers: Any) -> None: