Skip to content

Commit

Permalink
gh-39377: Mark test as random to avoid failure
Browse files Browse the repository at this point in the history
Fix issue pointed out in
#39153 (comment)

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->

URL: #39377
Reported by: user202729
Reviewer(s):
  • Loading branch information
Release Manager committed Jan 26, 2025
2 parents 5d0d4bb + e75bf95 commit efc0914
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tarball=configure-VERSION.tar.gz
sha1=f9c1bea6113a6a09430ee1f1aca16c75ed427d48
sha256=c1e0826fb54dd60e78f19e6fcad0b0ef90b33e1771fbbc2165a54c9297a89557
sha1=01e1e03cf089debd5e1b62ace31b331c91e37b22
sha256=f47fbefc52031254ccf9aac2c2c609fabb70d976ec61a95f9f93ab980428b93f
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5eb37241946a9ef9130ce36eff7e4f135d980eaf
4f5ae64eb6ce9a9c3eb79f8f14e15af78bcbda88
38 changes: 4 additions & 34 deletions src/sage/rings/number_field/number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -8780,40 +8780,10 @@ def subfields(self, degree=0, name=None):
polynomials are supported (:issue:`252`)::
sage: K.<a> = NumberField(2*x^4 + 6*x^2 + 1/2)
sage: sorted(K.subfields(), key=lambda x: x[0].discriminant())
[(Number Field in a3 with defining polynomial x^2 + 2,
Ring morphism:
From: Number Field in a3 with defining polynomial x^2 + 2
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
Defn: a3 |--> 2*a^3 + 5*a,
None),
(Number Field in a2 with defining polynomial x^2 + 4,
Ring morphism:
From: Number Field in a2 with defining polynomial x^2 + 4
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
Defn: a2 |--> 2*a^3 + 7*a,
None),
(Number Field in a0 with defining polynomial x,
Ring morphism:
From: Number Field in a0 with defining polynomial x
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
Defn: 0 |--> 0,
None),
(Number Field in a1 with defining polynomial x^2 - 2,
Ring morphism:
From: Number Field in a1 with defining polynomial x^2 - 2
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
Defn: a1 |--> a^2 + 3/2,
None),
(Number Field in a4 with defining polynomial x^4 + 1,
Ring morphism:
From: Number Field in a4 with defining polynomial x^4 + 1
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
Defn: a4 |--> a^3 + 1/2*a^2 + 5/2*a + 3/4,
Ring morphism:
From: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
To: Number Field in a4 with defining polynomial x^4 + 1
Defn: a |--> -1/2*a4^3 + a4^2 - 1/2*a4)]
sage: K
Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
sage: sorted([F.discriminant() for F, _, _ in K.subfields()])
[-8, -4, 1, 8, 256]
"""
return self._subfields_helper(degree=degree, name=name,
both_maps=True, optimize=False)
Expand Down

0 comments on commit efc0914

Please sign in to comment.