unittest not being run

cjw cjw at ncf.ca
Mon May 10 17:17:24 EDT 2010


On 10-May-10 10:21 AM, John Maclean wrote:
> On 10/05/2010 14:38, J. Cliff Dyer wrote:
>> My guess is you mixed tabs and spaces. One tab is always treated by the
>> python interpreter as being equal to eight spaces, which is two
>> indentation levels in your code.
>>
>> Though if it were exactly as you show it, you'd be getting a syntax
>> error, because even there, it looks like the indentation of your `def
>> test_T1(self):` line is off by one column, relative to pass, and by
>> three columns relative to the other methods.
>>
>> Cheers,
>> Cliff
>
> 'twas a spaces/indent issue. thanks!
>
>
>
PyScripter and PythonWin permit the user to choose the equivalence of 
tabs and spaces.  I like two spaces = on tab, it's a matter of taste.  I 
feel that eight spaces is too much.

Colin W.



More information about the Python-list mailing list