malformed assert message in assert_called_anytime
Bug #1210296 reported by
Peter Hamilton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Undecided
|
Peter Hamilton |
Bug Description
Location: cinderclient/
Method: assert_
The following statement raises a TypeError when "found = False":
assert found, 'Expected %s %s; got %s' % (expected, self.client.
This occurs because "expected" is a tuple and does not get expanded properly when nested within another tuple. To fix, I propose wrapping the callstack argument in a single-element tuple and joining the two together:
assert found, 'Expected %s %s; got %s' % (expected + (self.client.
Changed in python-cinderclient: | |
assignee: | nobody → Peter Hamilton (peter-hamilton) |
tags: | added: test |
Changed in python-cinderclient: | |
status: | New → In Progress |
Changed in python-cinderclient: | |
milestone: | none → 1.3.1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/41525
Review: https:/