Fix importlib and unittest import errors

This commit is contained in:
Johannes Linke
2015-12-05 11:00:45 +01:00
parent 444b23dc24
commit df2e047b08
6 changed files with 8 additions and 7 deletions

View File

@@ -2,9 +2,10 @@
from __future__ import with_statement, unicode_literals from __future__ import with_statement, unicode_literals
import sys import sys
import unittest
from django.test import TestCase from django.test import TestCase
from django.utils import unittest, six from django.utils import six
from django.test.utils import override_settings from django.test.utils import override_settings
from compressor.conf import settings from compressor.conf import settings

View File

@@ -2,13 +2,14 @@ from __future__ import with_statement, unicode_literals
import io import io
import os import os
import sys import sys
import unittest
from importlib import import_module
import django import django
from django.core.management.base import CommandError from django.core.management.base import CommandError
from django.template import Template, Context from django.template import Template, Context
from django.test import TestCase from django.test import TestCase
from django.utils import six, unittest from django.utils import six
from django.utils.importlib import import_module
from compressor.cache import flush_offline_manifest, get_offline_manifest from compressor.cache import flush_offline_manifest, get_offline_manifest
from compressor.conf import settings from compressor.conf import settings

View File

@@ -1,5 +1,6 @@
from __future__ import with_statement from __future__ import with_statement
import os import os
import unittest
try: try:
import lxml import lxml
@@ -11,7 +12,6 @@ try:
except ImportError: except ImportError:
html5lib = None html5lib = None
from django.utils import unittest
from django.test.utils import override_settings from django.test.utils import override_settings
from compressor.base import SOURCE_HUNK, SOURCE_FILE from compressor.base import SOURCE_HUNK, SOURCE_FILE

View File

@@ -1,4 +1,5 @@
from django.utils import unittest import unittest
from django.test import TestCase from django.test import TestCase
from django.test.utils import override_settings from django.test.utils import override_settings
from django.conf import settings from django.conf import settings

View File

@@ -5,7 +5,6 @@ mock==1.0.1
Jinja2==2.7.3 Jinja2==2.7.3
lxml==3.4.2 lxml==3.4.2
beautifulsoup4==4.4.0 beautifulsoup4==4.4.0
unittest2==1.0.0
jingo==0.7 jingo==0.7
django-sekizai==0.9.0 django-sekizai==0.9.0
django-overextends==0.4.0 django-overextends==0.4.0

View File

@@ -7,7 +7,6 @@ two =
Jinja2==2.7.3 Jinja2==2.7.3
lxml==3.4.2 lxml==3.4.2
beautifulsoup4==4.4.0 beautifulsoup4==4.4.0
unittest2==1.0.0
jingo==0.7 jingo==0.7
django-sekizai==0.9.0 django-sekizai==0.9.0
django-overextends==0.4.0 django-overextends==0.4.0