[Debian-med-packaging] Bug#795584: python-hl7: FTBFS: AttributeError: assert_call_with

FladischerMichael at fladi.at FladischerMichael at fladi.at
Sat Aug 15 17:36:43 UTC 2015


Hi Andreas,

Quoting Andreas Tille <tille at debian.org>:
> I realise that there might be an incompatibility with the latest
> python-mock version but I do not have any idea how to fix this.

this seems to be simply a case of a missing legacy method name in  
python-mock. unittest.mock, which is part of Python (>=) 3.3 provides  
assert_call_with() and assert_called_with() (the canonical name) but  
python-mock only provides assert_called_with(). This causes the tests  
to pass with Python (>=) 3.3 but lets them fail for Python 2.7.

See the attached patch for a solution.

Cheers, Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mock_method_name.patch
Type: text/x-diff
Size: 517 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20150815/c081b1f3/attachment.patch>


More information about the Debian-med-packaging mailing list