py27 tox tests fail with a TypeError

Bug #1537852 reported by Ryan Petrello
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Undecided
Kiall Mac Innes

Bug Description

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

An example of the full traceback of the failure can be found here:

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

Revision history for this message
sonu (sonu-bhumca11) wrote :

Hi Ryan,

I am not able to reproduce this bug. I am getting all the test cases successfully passed .

could you please provide more info regarding this bug.

Revision history for this message
Ryan Petrello (ryan-petrello) wrote :
Changed in designate:
status: New → Confirmed
status: Confirmed → Fix Committed
Changed in designate:
status: Fix Committed → Fix Released
assignee: nobody → Kiall Mac Innes (kiall)
milestone: none → mitaka-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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