#4672: [with patch, needs work] plot functions do not work with ?? because they
are wrapped in @options
----------------------+-----------------------------------------------------
 Reporter:  jason     |        Owner:  mhansen   
     Type:  defect    |       Status:  assigned  
 Priority:  major     |    Milestone:  sage-3.2.2
Component:  graphics  |   Resolution:            
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by mabshoff):

  * summary:  [with patch, positive review] plot functions do not work with
              ?? because they are wrapped in @options =>
              [with patch, needs work] plot functions do not
              work with ?? because they are wrapped in
              @options

Comment:

 This patch breaks one doctest:
 {{{
 sage -t -long "devel/sage/sage/combinat/sloane_functions.py"
 **********************************************************************
 File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/devel/sage/sage/combinat/sloane_functions.py",
 line 156:
     sage: sloane.A000045._sage_src_()
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/local/bin/ncadoctest.py", line 1231, in
 run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/local/bin/ncadoctest.py", line 1172, in
 run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_5[2]>", line 1, in <module>
         sloane.A000045._sage_src_()###line 156:
     sage: sloane.A000045._sage_src_()
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/local/lib/python2.5/site-
 packages/sage/combinat/sloane_functions.py", line 160, in _sage_src_
         return sage_getsource(self.__class__)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/local/lib/python2.5/site-
 packages/sage/misc/sageinspect.py", line 367, in sage_getsource
         return obj._sage_src_()
     TypeError: unbound method _sage_src_() must be called with A000045
 instance as first argument (got nothing instead)
 **********************************************************************
 1 items had failures:
    1 of   3 in __main__.example_5
 ***Test Failed*** 1 failures.
 For whitespace errors, see the file /scratch/mabshoff/release-
 cycle/sage-3.2.2.alpha0/tmp/.doctest_sloane_functions.py
          [6.6 s]
 exit code: 1024
 }}}

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

Reply via email to