py27 tox tests fail with a TypeError

Bug #1537853 reported by Ryan Petrello
This bug report is a duplicate of:  Bug #1537852: py27 tox tests fail with a TypeError. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
New
Undecided
Unassigned

Bug Description

Currently, tests run via `tox -epy27` are failing with a TypeError:

An example of the full traceback of the failure:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "designate/tests/unit/test_backend/test_designate.py", line 78, in setUp
        self.backend = impl_designate.DesignateBackend(self.target)
      File "designate/backend/impl_designate.py", line 42, in __init__
        super(DesignateBackend, self).__init__(target)
      File "designate/backend/base.py", line 49, in __init__
        self.admin_context = DesignateContext.get_admin_context()
      File "designate/context.py", line 138, in get_admin_context
        return cls(None, **kwargs)
      File "designate/context.py", line 45, in __init__
        super(DesignateContext, self).__init__(
    TypeError: must be type, not MagicMock

======
Totals
======
Ran: 1249 tests in 81.0000 sec.
 - Passed: 1238
 - Skipped: 3
 - Expected Fail: 4
 - Unexpected Success: 0
 - Failed: 4

description: updated
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.