kgashok / pymox

Automatically exported from code.google.com/p/pymox
Apache License 2.0
0 stars 0 forks source link

Separate error message from arguments #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

mock.AMethod().AndRaise(StopIteration)

What is the expected output? What do you see instead?

The following error message is printed:

AttributeError: No values given for arguments cell groups

It's not obvious that "cell groups" are the argument names used in the 
tested code, and the actual message from mox ends at "arguments". One could 
imagine an even more confusing combination.

Using some punctuation would help considerably:

AttributeError: No values given for arguments: cell, groups

This is just one place I've encountered this. There might be more similar 
cases in need of improvement.

Original issue reported on code.google.com by marcin.o...@gmail.com on 24 May 2010 at 12:21

GoogleCodeExporter commented 8 years ago
I've made a minor change to add a colon for now.  I'll play around with adding 
better formatting in the future.

Original comment by steve.mi...@gmail.com on 17 Jun 2010 at 7:55