core/cachew: use cache_dir in mcachew if it wasn't specified by the user
This commit is contained in:
parent
3e821ca7fd
commit
271cd7feef
2 changed files with 17 additions and 8 deletions
|
@ -107,7 +107,8 @@ def test_cachew() -> None:
|
|||
from my.core.common import mcachew
|
||||
|
||||
called = 0
|
||||
@mcachew
|
||||
# FIXME ugh. need doublewrap or something
|
||||
@mcachew()
|
||||
def cf() -> List[int]:
|
||||
nonlocal called
|
||||
called += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue