Skip to content

Commit

Permalink
test_serve_static_with_staticfiles_app: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jan 14, 2020
1 parent febbff4 commit e8d8312
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,12 @@ def test_serve_static_with_staticfiles_app(self, django_testdir, settings):
"""
django_testdir.create_test_module(
"""
import pytest
from django.utils.encoding import force_str
try:
from urllib2 import urlopen, HTTPError
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen, HTTPError
from urllib.request import urlopen
class TestLiveServer:
def test_a(self, live_server, settings):
Expand Down

0 comments on commit e8d8312

Please sign in to comment.