ImportError: cannot import name call

Bug #1210255 reported by Chris Johnston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Helipad
New
High
Unassigned

Bug Description

CI is running tests with a version of mock that isn't available in precise. This needs to be fixed.

python manage.py jenkins
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/django_jenkins-0.14.0-py2.7.egg/django_jenkins/management/commands/__init__.py", line 81, in handle
    if test_runner.run_tests(test_labels):
  File "/usr/lib/python2.7/dist-packages/django/test/simple.py", line 380, in run_tests
    suite = self.build_suite(test_labels, extra_tests)
  File "/usr/local/lib/python2.7/dist-packages/django_jenkins-0.14.0-py2.7.egg/django_jenkins/runner.py", line 263, in build_suite
    signals.build_suite.send(sender=self, suite=suite)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.7/dist-packages/django_jenkins-0.14.0-py2.7.egg/django_jenkins/tasks/django_tests.py", line 28, in build_suite
    suite.addTest(build_suite(app))
  File "/usr/lib/python2.7/dist-packages/django/test/simple.py", line 79, in build_suite
    test_module = get_tests(app_module)
  File "/usr/lib/python2.7/dist-packages/django/test/simple.py", line 36, in get_tests
    test_module = import_module('.'.join(prefix + [TEST_MODULE]))
  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/var/lib/jenkins/jobs/qa-dashboard-ci/workspace/ci/tests/__init__.py", line 19, in <module>
    from unit import *
  File "/var/lib/jenkins/jobs/qa-dashboard-ci/workspace/ci/tests/unit/__init__.py", line 17, in <module>
    from test_ci_project_import import *
  File "/var/lib/jenkins/jobs/qa-dashboard-ci/workspace/ci/tests/unit/test_ci_project_import.py", line 16, in <module>
    from mock import MagicMock, patch, call
ImportError: cannot import name call

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.