#5759: [with patch, needs work] bug in divides
------------------------------+---------------------------------------------
 Reporter:  was               |       Owner:  was       
     Type:  defect            |      Status:  new       
 Priority:  major             |   Milestone:  sage-3.4.2
Component:  basic arithmetic  |    Keywords:            
------------------------------+---------------------------------------------

Comment(by was):

 This breaks a doctest somewhere else:

 {{{
 wst...@sage:~/build/sage-3.4.1.rc2$ ./sage -t
 devel/sage/sage/coding/code_constructions.py
 sage -t  "devel/sage/sage/coding/code_constructions.py"
 **********************************************************************
 File
 
"/scratch/wstein/build/sage-3.4.1.rc2/devel/sage/sage/coding/code_constructions.py",
 line 530:
     sage: g.divides(f)
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/sagedoctest.py", line 38,
 in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/wstein/build/sage-3.4.1.rc2/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_7[6]>", line 1, in <module>
         g.divides(f)###line 530:
     sage: g.divides(f)
       File "element.pyx", line 1380, in
 sage.structure.element.CommutativeRingElement.divides
 (sage/structure/element.c:12436)
       File "parent_old.pyx", line 334, in
 sage.structure.parent_old.Parent._coerce_c
 (sage/structure/parent_old.c:5417)
       File "parent_old.pyx", line 336, in
 sage.structure.parent_old.Parent._coerce_c
 (sage/structure/parent_old.c:5186)
       File "parent.pyx", line 374, in sage.structure.parent.Parent.coerce
 (sage/structure/parent.c:4994)
     TypeError: no canonical coercion from Univariate Polynomial Ring in x
 over Finite Field in a of size 3^2 to Univariate Polynomial Ring in x over
 Finite Field of size 3
 **********************************************************************
 1 items had failures:
    1 of  14 in __main__.example_7
 ***Test Failed*** 1 failures.
 For whitespace errors, see the file
 /scratch/wstein/build/sage-3.4.1.rc2/tmp/.doctest_code_constructions.py
          [4.2 s]
 exit code: 1024

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


         sage -t  "devel/sage/sage/coding/code_constructions.py"
 Total time for all tests: 4.2 seconds
 }}}

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