#18244: mysterious doctest failure on dyck_word.py
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  vdelecroix             |       Status:  new
           Type:         |    Milestone:  sage-6.7
  defect                 |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:
  documentation          |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  75f0a4a3305375b9bbad62aaadb22a95bd009c31
Report Upstream:  N/A    |     Stopgaps:
         Branch:         |
  public/18244           |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by behackl):

 And here is what I found, based on the more verbose output:

 `./sage -bt src/sage/combinat/dyck_word.py` gives
 {{{
 sage -t --warn-long 78.6 src/sage/combinat/dyck_word.py
 **********************************************************************
 File "src/sage/combinat/dyck_word.py", line 3501, in
 sage.combinat.dyck_word.DyckWords_size.__init__
 Failed example:
     TestSuite(DyckWords(4,2)).run()
 Expected nothing
 Got:
     Failure in _test_enumerated_set_iter_cardinality:
     Traceback (most recent call last):
       File "/home/behackl/Programming/sage-6.7.beta1/local/lib/python2.7
 /site-packages/sage/misc/sage_unittest.py", line 282, in run
         test_method(tester = tester)
       File "/home/behackl/Programming/sage-6.7.beta1/local/lib/python2.7
 /site-packages/sage/categories/finite_enumerated_sets.py", line 463, in
 _test_enumerated_set_iter_cardinality
         "expected a Sage Integer and got {} of type
 {}".format(card,type(card)))
       File
 "/home/behackl/Programming/sage-6.7.beta1/local/lib/python/unittest/case.py",
 line 422, in assertTrue
         raise self.failureException(msg)
     AssertionError: expected a Sage Integer and got 9 of type <type 'int'>
     ------------------------------------------------------------
     The following tests failed: _test_enumerated_set_iter_cardinality
 **********************************************************************
 }}}

 On the other hand, just testing without building (`./sage -t
 src/sage/combinat/dyck_word.py`) yields

 {{{
 sage -t --warn-long 78.6 src/sage/combinat/dyck_word.py
     [574 tests, 0.95 s]
 ----------------------------------------------------------------------
 All tests passed!
 ----------------------------------------------------------------------
 }}}

 It looks like a Python integer kills us directly after building sage, but
 not if we are just testing.

--
Ticket URL: <http://trac.sagemath.org/ticket/18244#comment:2>
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.

Reply via email to