]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
isolate bytecode cache tests
authorDavid Lord <davidism@gmail.com>
Mon, 27 Jan 2020 06:24:38 +0000 (22:24 -0800)
committerDavid Lord <davidism@gmail.com>
Mon, 27 Jan 2020 06:24:38 +0000 (22:24 -0800)
tests/test_bytecode_cache.py

index 6863690a16652f2f821c1b9f5a23d08ba4214603..2970cb5c182a07b2695ece949e80c366b56c3eff 100644 (file)
@@ -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