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.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to