tests fail on python2 #5

Closed
opened 2019-10-24 14:24:20 +02:00 by heinzel · 0 comments
Owner

ERROR: apps.base.tests.test_views (unittest.loader.ModuleImportFailure)

ImportError: Failed to import test module: apps.base.tests.test_views
Traceback (most recent call last):
File "/usr/lib64/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib64/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/var/lib/buildbot/master/workers/local/django-test-test-python2/build/apps/base/tests/test_views.py", line 8, in
from unittest import mock
ImportError: cannot import name mock

ERROR: apps.base.tests.test_views (unittest.loader.ModuleImportFailure) ---------------------------------------------------------------------- ImportError: Failed to import test module: apps.base.tests.test_views Traceback (most recent call last): File "/usr/lib64/python2.7/unittest/loader.py", line 254, in _find_tests module = self._get_module_from_name(name) File "/usr/lib64/python2.7/unittest/loader.py", line 232, in _get_module_from_name __import__(name) File "/var/lib/buildbot/master/workers/local/django-test-test-python2/build/apps/base/tests/test_views.py", line 8, in <module> from unittest import mock ImportError: cannot import name mock
heinzel added the bug label 2019-10-24 14:24:20 +02:00
heinzel referenced this issue from a commit 2019-10-24 14:40:02 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: python/django-test#5