Kasia Jachim added the comment:
Tests for this bug + proposed fix.
--
keywords: +patch
nosy: +kjachim
Added file: http://bugs.python.org/file38919/fix_magic_in_init.diff
___
Python tracker
<http://bugs.python.org/issue23
Kasia Jachim added the comment:
For Mock both the following tests fail, I would say it is an expected behavior.
def test_setting_magic_method_for_mock(self):
m = Mock()
m.configure_mock(**{'__str__.return_value': "14"})
self.assertEqual(str(m)
Kasia Jachim added the comment:
Added more logging to the patch.
--
Added file: http://bugs.python.org/file38922/fix_magic_in_init_v2.diff
___
Python tracker
<http://bugs.python.org/issue23
Changes by Kasia Jachim :
--
nosy: +lukasz.langa
___
Python tracker
<http://bugs.python.org/issue23078>
___
___
Python-bugs-list mailing list
Unsubscribe:
Kasia Jachim added the comment:
Tested on 2.7.6 (default from Ubuntu) and 3.5.0a3+ (built from sources), in
both cases $$ seems to work correctly, returned {'FOO': '${bar} bla bla'} for
the input from msg60909.
--
nosy: +kjachim
__