Skip to content

Commit e8d8312

Browse files
committed
test_serve_static_with_staticfiles_app: remove unused imports
1 parent febbff4 commit e8d8312

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_fixtures.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,12 @@ def test_serve_static_with_staticfiles_app(self, django_testdir, settings):
417417
"""
418418
django_testdir.create_test_module(
419419
"""
420-
import pytest
421420
from django.utils.encoding import force_str
422421
423422
try:
424-
from urllib2 import urlopen, HTTPError
423+
from urllib2 import urlopen
425424
except ImportError:
426-
from urllib.request import urlopen, HTTPError
425+
from urllib.request import urlopen
427426
428427
class TestLiveServer:
429428
def test_a(self, live_server, settings):

0 commit comments

Comments
 (0)