diff options
author | David Lord <davidism@gmail.com> | 2020-01-26 22:24:38 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2020-01-26 22:24:38 -0800 |
commit | d312609ccd561498d2963d47f0330715e8f24982 (patch) | |
tree | d9f518591c507bf968faf61ef03b6d8824cc5bcd | |
parent | 984997913cc2eb1a00e1b8787c3d3ada5dd359c7 (diff) | |
download | jinja2-d312609ccd561498d2963d47f0330715e8f24982.tar.gz |
isolate bytecode cache tests
-rw-r--r-- | tests/test_bytecode_cache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_bytecode_cache.py b/tests/test_bytecode_cache.py index 6863690..2970cb5 100644 --- a/tests/test_bytecode_cache.py +++ b/tests/test_bytecode_cache.py @@ -9,9 +9,9 @@ from jinja2.exceptions import TemplateNotFound @pytest.fixture -def env(package_loader): - bytecode_cache = FileSystemBytecodeCache() - return Environment(loader=package_loader, bytecode_cache=bytecode_cache,) +def env(package_loader, tmp_path): + bytecode_cache = FileSystemBytecodeCache(str(tmp_path)) + return Environment(loader=package_loader, bytecode_cache=bytecode_cache) @pytest.mark.byte_code_cache |