annoying doctest problem

Steven D'Aprano steve at pearwood.info
Mon Jan 12 00:24:44 EST 2015


On Sun, 11 Jan 2015 20:20:35 -0800, gordianknot1981 wrote:
[...]
> Expected:
>     "<MYBT at ToggleButton+Button>:"
> Got:
>     '<MYBT at ToggleButton+Button>:'

doctest is *very* fussy about the strings matching exactly. You have to 
use single quotes.

I've been burned by this once or twice...


-- 
Steve



More information about the Python-list mailing list