Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix _test_category for polynomial rings #15232

Closed
saraedum opened this issue Sep 26, 2013 · 44 comments
Closed

fix _test_category for polynomial rings #15232

saraedum opened this issue Sep 26, 2013 · 44 comments

Comments

@saraedum
Copy link
Member

Polynomial rings whose elements are not extension classes currently don't pass the TestSuite:

sage: K.<x> = FunctionField(QQ)
sage: R.<y> = K[]
sage: TestSuite(R).run()
  Failure in _test_category:
  Traceback (most recent call last):
    File "/dev/shm/sage/local/lib/python2.7/site-packages/sage/misc/sage_unittest.py", line 282, in run
      test_method(tester = tester)
    File "element.pyx", line 511, in sage.structure.element.Element._test_category (sage/structure/element.c:5084)
    File "/dev/shm/sage/local/lib/python/unittest/case.py", line 424, in assertTrue
      raise self.failureException(msg)
  AssertionError: False is not true
  ------------------------------------------------------------
  The following tests failed: _test_category
Failure in _test_elements
The following tests failed: _test_elements

The problem is that polynomials do not use element_class to construct their elements but a _polyonmial_class which does not use the ElementMethods of the category.

Component: categories

Keywords: sd59

Author: Julian Rueth

Branch/Commit: 83ab7c3

Reviewer: Vincent Delecroix, David Roe

Issue created by migration from https://trac.sagemath.org/ticket/15232

@saraedum saraedum added this to the sage-6.1 milestone Sep 26, 2013
@saraedum
Copy link
Member Author

Branch: u/saraedum/ticket/15232

@saraedum
Copy link
Member Author

Author: Julian Rueth

@roed314
Copy link
Contributor

roed314 commented Jan 3, 2014

Changed branch from u/saraedum/ticket/15232 to u/roed/ticket/15232

@roed314
Copy link
Contributor

roed314 commented Jan 3, 2014

Commit: 8c58b70

@roed314
Copy link
Contributor

roed314 commented Jan 3, 2014

comment:4

I've rebased this against sage-6.0 + #12555.


Last 10 new commits:

8c58b70Merge commit '901f95321554' into ticket/15232
aa65f59Removed removed file from doc.
f338b7fFix wrong NOTE block.
fcf6ad2Fix for comparison of padics.
5f00813Fixes for "sage not defined".
89ef12dMerge remote-tracking branch 'origin/develop' into ticket/12555
0e7c964Fixed failing doctest (likely due to #15422).
7d7ff1fMerge branch 'master' into public/padics/templates-12555
4b633abFixes for some missing/duplicated chunks.
66e5746From Trac patches: trac_12555-pdf_fix-ts.patch.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 4, 2014

Changed commit from 8c58b70 to 3eafd90

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 4, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

3eafd90Fixing some conflicts between Jeroen's and Julian's changes

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 4, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. Recent commits:

49fae49 Fixing some conflicts between Jeroen's and Julian's changes
8c58b70 Merge commit '901f95321554' into ticket/15232
901f953 Added new base classes for p-adic polynomial elements

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 4, 2014

Changed commit from 3eafd90 to 49fae49

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 8, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

2f14211Chage polynomial_padic to Cython for upcoming p-adic template ticket

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 8, 2014

Changed commit from 49fae49 to 2f14211

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@fchapoton
Copy link
Contributor

comment:9

There are some failing doctests, see patchbot report.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@saraedum
Copy link
Member Author

Changed branch from u/roed/ticket/15232 to u/saraedum/ticket/15232

@saraedum
Copy link
Member Author

Changed keywords from none to sd59

@saraedum
Copy link
Member Author

Changed commit from 2f14211 to 0cbaa10

@saraedum
Copy link
Member Author

comment:12

I am not sure anymore what I tried to do at this ticket. The new branch seems to fix this issue with only very few changes.


New commits:

0cbaa10Use Element/element_class for polynomials which are not extension classes

@malb
Copy link
Member

malb commented Jun 28, 2014

comment:13

Patchbot reports doctest failures.

@roed314
Copy link
Contributor

roed314 commented Nov 5, 2015

comment:26

Looks good to me.

@roed314
Copy link
Contributor

roed314 commented Nov 5, 2015

Changed work issues from conflicts to none

@roed314
Copy link
Contributor

roed314 commented Nov 5, 2015

Changed reviewer from Vincent Delecroix to Vincent Delecroix, David Roe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 5, 2015

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

af6987dMerge branch 'develop' into t/15232/public/ticket/15232

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 5, 2015

Changed commit from d89d7b8 to af6987d

@roed314
Copy link
Contributor

roed314 commented Nov 5, 2015

comment:28

Thanks.

@vbraun
Copy link
Member

vbraun commented Nov 5, 2015

comment:29
sage -t --long src/doc/ja/tutorial/tour_coercion.rst
**********************************************************************
File "src/doc/ja/tutorial/tour_coercion.rst", line 44, in doc.ja.tutorial.tour_coercion
Failed example:
    type(a); type(b); type(c)
Expected:
    <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>
    <class 'sage.rings.polynomial.polynomial_element_generic.Polynomial_generic_sparse'>
    <type 'sage.rings.polynomial.polynomial_integer_dense_ntl.Polynomial_integer_dense_ntl'>
Got:
    <type 'sage.rings.polynomial.polynomial_integer_dense_flint.Polynomial_integer_dense_flint'>
    <class 'sage.rings.polynomial.polynomial_element_generic.PolynomialRing_integral_domain_with_category.element_class'>
    <type 'sage.rings.polynomial.polynomial_integer_dense_ntl.Polynomial_integer_dense_ntl'>
**********************************************************************
1 item had failures:
   1 of  72 in doc.ja.tutorial.tour_coercion
    [59 tests, 1 failure, 0.34 s]

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2015

Changed commit from af6987d to 791d0d5

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

f966948Merge branch 'develop' into t/15232/public/ticket/15232
791d0d5Fix doctest which failed because of type name change

@saraedum
Copy link
Member Author

New commits:

f966948Merge branch 'develop' into t/15232/public/ticket/15232
791d0d5Fix doctest which failed because of type name change

New commits:

f966948Merge branch 'develop' into t/15232/public/ticket/15232
791d0d5Fix doctest which failed because of type name change

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 23, 2015

Changed commit from 791d0d5 to 83ab7c3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 23, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

83ab7c3Merge branch 'develop' into t/15232/public/ticket/15232

@roed314
Copy link
Contributor

roed314 commented Feb 16, 2016

comment:33

Looks good.

@vbraun
Copy link
Member

vbraun commented Feb 18, 2016

Changed branch from public/ticket/15232 to 83ab7c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants