core/cachew: use cache_dir in mcachew if it wasn't specified by the user

This commit is contained in:
Dima Gerasimov 2021-02-21 19:02:12 +00:00 committed by karlicoss
parent 3e821ca7fd
commit 271cd7feef
2 changed files with 17 additions and 8 deletions

View file

@ -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