diff options
author | Michael Foord <michael@voidspace.org.uk> | 2011-08-05 22:07:57 +0100 |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2011-08-05 22:07:57 +0100 |
commit | c842a8c7b2892a477094e07ea71af96785e990df (patch) | |
tree | 766969284dc8bc8fa4588c95a6b480641ff4cc3c /mock.py | |
parent | c4f78f55d1e09a19cef01695c80312294e87aa6b (diff) | |
download | mock-c842a8c7b2892a477094e07ea71af96785e990df.tar.gz |
Fixing call repr
Diffstat (limited to 'mock.py')
-rw-r--r-- | mock.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1821,10 +1821,12 @@ class _Call(tuple): args, kwargs = self else: name, args, kwargs = self - if not name: + if not name or name == '()': name = 'call' - else: + elif not name.startswith('()'): name = 'call.%s' % name + else: + name = 'call%s' % name return _format_call_signature(name, args, kwargs) |