#6329: optional doctest failure --  breakage in the sage<-->magma interface
-------------------------------+--------------------------------------------
 Reporter:  was                |       Owner:  tbd       
     Type:  defect             |      Status:  new       
 Priority:  major              |   Milestone:  sage-4.0.3
Component:  optional packages  |    Keywords:            
 Reviewer:                     |      Author:            
   Merged:                     |  
-------------------------------+--------------------------------------------

Comment(by was):

 More failures:
 {{{
 sage -t -long --optional devel/sage/sage/interfaces/magma.py
 **********************************************************************
 File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
 main/sage/interfaces/magma.py", line 856:
     sage: magma.attach('%s/data/extcode/magma/sage/basic.m'%Sage_ROOT)
 # optional - magma
 Exception raised:
     Traceback (most recent call last):
       File
 "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_20[2]>", line 1, in <module>
         magma.attach('%s/data/extcode/magma/sage/basic.m'%Sage_ROOT)    #
 optional - magma###line 856:
     sage: magma.attach('%s/data/extcode/magma/sage/basic.m'%Sage_ROOT)
 # optional - magma
     NameError: name 'Sage_ROOT' is not defined
 **********************************************************************
 File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
 main/sage/interfaces/magma.py", line 860:
     sage: magma.attach('%s/data/extcode/magma/sage/basic2.m'%Sage_ROOT)
 # optional - magma
 Expected:
     Traceback (most recent call last):
     ...
     RuntimeError: Error evaluating Magma code...
 Got:
     Traceback (most recent call last):
       File
 "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_20[3]>", line 1, in <module>
         magma.attach('%s/data/extcode/magma/sage/basic2.m'%Sage_ROOT)
 # optional - magma###line 860:
     sage: magma.attach('%s/data/extcode/magma/sage/basic2.m'%Sage_ROOT)
 # optional - magma
     NameError: name 'Sage_ROOT' is not defined
 **********************************************************************
 File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
 main/sage/interfaces/magma.py", line 917:
     sage: print magma.load(SAGE_TMP + 'a.m')      # optional - magma
 Expected:
     Loading ".../.sage//temp/.../a.m"
     hi
 Got:
     Loading
 "/scratch/wstein/sage//temp/sage.math.washington.edu/31604/a.m"
     hi
 **********************************************************************
 File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
 main/sage/interfaces/magma.py", line 2148:
     sage: magma.eval('R<x> := PolynomialRing(RationalField()); f :=
 (x-17/2)^3;')     # optional - magma
 Expected:
     "
 Got:
     ''
 **********************************************************************
 File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
 main/sage/interfaces/magma.py", line 2160:
     sage: magma.eval('K<a> := CyclotomicField(11)')       # optional -
 magma
 Expected:
     "
 Got:
     ''
 **********************************************************************
 File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
 main/sage/interfaces/magma.py", line 463:
     sage: magma.eval("a := %s;"%(10^10000))    # optional - magma
 Expected:
     "
 Got:
     ''
 **********************************************************************
 4 items had failures:
    2 of   4 in __main__.example_20
    1 of   5 in __main__.example_22
    2 of  28 in __main__.example_64
    1 of   4 in __main__.example_9
 ***Test Failed*** 6 failures.
 For whitespace errors, see the file
 /home/wstein/build/sage-4.0.2.alpha3/tmp/.doctest_magma.py
          [32.9 s]

 }}}

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