Skip to content

Commit d5f3685

Browse files
committed
test: monkeypatch cache
1 parent 46e15d4 commit d5f3685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templateflow/tests/test_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def mock_import(name, globals=None, locals=None, fromlist=(), level=0): # noqa:
156156
return oldimport(name, globals=globals, locals=locals, fromlist=fromlist, level=level)
157157

158158
with monkeypatch.context() as m:
159-
m.setattr(tfc, 'TF_LAYOUT', None)
159+
m.setattr(tfc._cache, 'layout', None)
160160
with pytest.raises(RuntimeError):
161161
myfunc()
162162

0 commit comments

Comments
 (0)