From 3ec9885d1dc73273e09558566e298dc86afe0235 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 30 Jan 2018 12:42:39 +0200 Subject: [PATCH] Drop unused vars --- tests/test_jinja_globals.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_jinja_globals.py b/tests/test_jinja_globals.py index 34abda9e..dceef8dd 100644 --- a/tests/test_jinja_globals.py +++ b/tests/test_jinja_globals.py @@ -1,5 +1,4 @@ import asyncio -import logging import jinja2 import pytest @@ -120,7 +119,7 @@ def test_static_var_missing(test_client, loop, caplog): @asyncio.coroutine def index(request): - with pytest.raises(RuntimeError, match='static_root_url') as ctx: + with pytest.raises(RuntimeError, match='static_root_url'): aiohttp_jinja2.render_template('tmpl.jinja2', request, {}) return web.Response()