#15990: Python 3 preparation: Change syntax of raise statement
-------------------------------------+-------------------------------------
Reporter: wluebbe | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.2
Component: distribution | Resolution:
Keywords: python3 | Merged in:
Authors: Wilfried Luebbe | Reviewers: R. Andrew Ohana
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/ohanar/raise_statement | f66c58281359d7535e8f488cfb96f096dd17ebd8
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: positive_review => needs_work
Comment:
{{{
File "src/sage/combinat/designs/ext_rep.py", line 737, in
sage.combinat.designs.ext_rep.XTree.__getitem__
Failed example:
xt.__getitem__(119)
Expected:
Traceback (most recent call last):
...
IndexError: XTree<blocks> has no index 119
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/home/release/Sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/home/release/Sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest sage.combinat.designs.ext_rep.XTree.__getitem__[4]>",
line 1, in <module>
xt.__getitem__(Integer(119))
File "/home/release/Sage/local/lib/python2.7/site-
packages/sage/combinat/designs/ext_rep.py", line 745, in __getitem__
raise IndexError('%s no index %s' % (self.__repr__(), `i`))
IndexError: XTree<blocks> no index 119
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15990#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.