#5534: [with patch, needs work] sage.combinat.subword.smallest_positions
modifying
its input (use #5200)
---------------------------+------------------------------------------------
Reporter: nthiery | Owner: hivert
Type: defect | Status: assigned
Priority: minor | Milestone: sage-combinat
Component: combinatorics | Keywords:
---------------------------+------------------------------------------------
Comment(by mabshoff):
This patch causes doctest failures in
{{{
sage -t -long devel/sage/sage/combinat/subword.py # 23 doctests
failed
sage -t -long devel/sage/sage/combinat/subset.py # 10 doctests
failed
}}}
For example"
{{{
sage -t -long "devel/sage/sage/combinat/subset.py"
**********************************************************************
File
"/scratch/mabshoff/sage-3.4.1.alpha0/devel/sage/sage/combinat/subset.py",
line 566:
sage: [] in S
Exception raised:
Traceback (most recent call last):
File "/scratch/mabshoff/sage-3.4/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/mabshoff/sage-3.4/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/mabshoff/sage-3.4/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_25[3]>", line 1, in <module>
[] in S###line 566:
sage: [] in S
File "/scratch/mabshoff/sage-3.4.1.alpha0/local/lib/python2.5/site-
packages/sage/combinat/subset.py", line 579, in __contains__
return sorted(s) in subword.Subwords(self._s)
File "/scratch/mabshoff/sage-3.4.1.alpha0/local/lib/python2.5/site-
packages/sage/combinat/subword.py", line 130, in __contains__
if smallest_positions(self.w, w) != False:
File "/scratch/mabshoff/sage-3.4.1.alpha0/local/lib/python2.5/site-
packages/sage/combinat/subword.py", line 315, in smallest_positions
res = [None] * subword.length()
AttributeError: 'list' object has no attribute 'length'
**********************************************************************
}}}
This is with #5200 merged, so is there another dependency?
Cheers,
Michael
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5534#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---