From: David Lord Date: Mon, 27 Jan 2020 06:24:38 +0000 (-0800) Subject: isolate bytecode cache tests X-Git-Tag: 2.11.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d312609ccd561498d2963d47f0330715e8f24982;p=thirdparty%2Fjinja.git isolate bytecode cache tests --- diff --git a/tests/test_bytecode_cache.py b/tests/test_bytecode_cache.py index 6863690a..2970cb5c 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