On 2/15/13 5:39 AM, Mark Shimozono wrote:
> Having been advised by the code barons that I should not
> use "asserts" except to check against mathematical impossibilities
> occurring during execution, I need to raise exceptions.
> What is the right way to put in the answer to the automatic doctest
> for raising an exception? I'm having trouble getting the right output to 
> match.
> 
> My patch is trac_12774-coxeter-ms.patch on the queue and
> the problem is in
> 
> sage -t categories/weyl_groups.py

You can do something like

        sage: p['something']
        Traceback (most recent call last):
        ...
        ValueError: ['s', 'o', 'm', 'e', 't', 'h', 'i', 'n', 'g'] not in 
Partitions

Best,

Anne

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to