Skip to content

Method .random_element not impl'ed forLaurentPolynomialRing #37454

@grhkm21

Description

@grhkm21

Steps To Reproduce

New Method

sage: LaurentPolynomialRing(QQ, "x").random_element() # errors

Original Method

Run sage.rings.tests.test_random_arith with seed 97302818739086349733003447647548552705:

$ sage -c "from sage.rings.tests import test_random_arith as t; t(trials=1000, seed=97302818739086349733003447647548552705)" | tail -n 7
Univariate Laurent Polynomial Ring in x over Number Field in aa with defining polynomial x^2 - 3*x - 99 over its base field
Random testing has revealed a problem in test_random_arith
Please report this bug!  You may be the first
person in the world to have seen this problem.
Please include this random seed in your bug report:
Random seed: 97302818739086349733003447647548552705
NotImplementedError()

Additional Information

Discovered in https://github.com/sagemath/sage/actions/runs/8031658497/job/21940219082?pr=37441 of #37441

Edit: Note that the cause of the workflow failing is NOT this method (as the failure is marked as a "timeout"). However, this is still logged as "Please report this bug".

Environment

Sage Version: both 10.2 & `develop`

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions