#10093: clean up documentation of sage/misc/bitset.pyx
-----------------------------+----------------------------------------------
   Reporter:  mvngu          |          Owner:  mvngu          
       Type:  enhancement    |         Status:  needs_work     
   Priority:  major          |      Milestone:  sage-5.0       
  Component:  documentation  |       Keywords:                 
Work_issues:  32-bit         |       Upstream:  N/A            
   Reviewer:  Nathann Cohen  |         Author:  Minh Van Nguyen
     Merged:                 |   Dependencies:                 
-----------------------------+----------------------------------------------
Changes (by jdemeyer):

  * status:  positive_review => needs_work
  * work_issues:  => 32-bit


Comment:

 This fails on 32-bit i386 Linux:
 {{{
 $ ./sage -t devel/sage/sage/misc/bitset.pyx
 sage -t  "devel/sage/sage/misc/bitset.pyx"
 **********************************************************************
 File "/home/jdemeyer/sage-5.0.beta0/devel/sage/sage/misc/bitset.pyx", line
 238:
     sage: FrozenBitset("", capacity=0)
 Expected:
     Traceback (most recent call last):
     ...
     MemoryError...
 Got:
     <BLANKLINE>
 **********************************************************************
 File "/home/jdemeyer/sage-5.0.beta0/devel/sage/sage/misc/bitset.pyx", line
 245:
     sage: FrozenBitset("110110", capacity=0)
 Expected:
     Traceback (most recent call last):
     ...
     MemoryError...
 Got:
     Traceback (most recent call last):
       File "/home/jdemeyer/sage-5.0.beta0/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/jdemeyer/sage-5.0.beta0/local/bin/sagedoctest.py", line
 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/jdemeyer/sage-5.0.beta0/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_1[46]>", line 1, in <module>
         FrozenBitset("110110", capacity=Integer(0))###line 245:
     sage: FrozenBitset("110110", capacity=0)
       File "bitset.pyx", line 365, in
 sage.misc.bitset.FrozenBitset.__init__ (sage/misc/bitset.c:4396)
     ValueError: bitset capacity does not match passed string
 **********************************************************************
 File "/home/jdemeyer/sage-5.0.beta0/devel/sage/sage/misc/bitset.pyx", line
 249:
     sage: FrozenBitset("110110", capacity=-0)
 Expected:
     Traceback (most recent call last):
     ...
     MemoryError...
 Got:
     Traceback (most recent call last):
       File "/home/jdemeyer/sage-5.0.beta0/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/jdemeyer/sage-5.0.beta0/local/bin/sagedoctest.py", line
 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/jdemeyer/sage-5.0.beta0/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_1[47]>", line 1, in <module>
         FrozenBitset("110110", capacity=-Integer(0))###line 249:
     sage: FrozenBitset("110110", capacity=-0)
       File "bitset.pyx", line 365, in
 sage.misc.bitset.FrozenBitset.__init__ (sage/misc/bitset.c:4396)
     ValueError: bitset capacity does not match passed string
 **********************************************************************
 1 items had failures:
    3 of  50 in __main__.example_1
 ***Test Failed*** 3 failures.
 For whitespace errors, see the file
 /home/jdemeyer/.sage//tmp/bitset_11221.py
          [3.7 s]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t  "devel/sage/sage/misc/bitset.pyx"
 Total time for all tests: 3.7 seconds
 }}}

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

Reply via email to