Skip to content

Commit efc0914

Browse files
author
Release Manager
committed
gh-39377: Mark test as random to avoid failure
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):
2 parents 5d0d4bb + e75bf95 commit efc0914

File tree

3 files changed

+7
-37
lines changed

3 files changed

+7
-37
lines changed

build/pkgs/configure/checksums.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=f9c1bea6113a6a09430ee1f1aca16c75ed427d48
3-
sha256=c1e0826fb54dd60e78f19e6fcad0b0ef90b33e1771fbbc2165a54c9297a89557
2+
sha1=01e1e03cf089debd5e1b62ace31b331c91e37b22
3+
sha256=f47fbefc52031254ccf9aac2c2c609fabb70d976ec61a95f9f93ab980428b93f
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5eb37241946a9ef9130ce36eff7e4f135d980eaf
1+
4f5ae64eb6ce9a9c3eb79f8f14e15af78bcbda88

src/sage/rings/number_field/number_field.py

+4-34
Original file line numberDiff line numberDiff line change
@@ -8780,40 +8780,10 @@ def subfields(self, degree=0, name=None):
87808780
polynomials are supported (:issue:`252`)::
87818781
87828782
sage: K.<a> = NumberField(2*x^4 + 6*x^2 + 1/2)
8783-
sage: sorted(K.subfields(), key=lambda x: x[0].discriminant())
8784-
[(Number Field in a3 with defining polynomial x^2 + 2,
8785-
Ring morphism:
8786-
From: Number Field in a3 with defining polynomial x^2 + 2
8787-
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8788-
Defn: a3 |--> 2*a^3 + 5*a,
8789-
None),
8790-
(Number Field in a2 with defining polynomial x^2 + 4,
8791-
Ring morphism:
8792-
From: Number Field in a2 with defining polynomial x^2 + 4
8793-
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8794-
Defn: a2 |--> 2*a^3 + 7*a,
8795-
None),
8796-
(Number Field in a0 with defining polynomial x,
8797-
Ring morphism:
8798-
From: Number Field in a0 with defining polynomial x
8799-
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8800-
Defn: 0 |--> 0,
8801-
None),
8802-
(Number Field in a1 with defining polynomial x^2 - 2,
8803-
Ring morphism:
8804-
From: Number Field in a1 with defining polynomial x^2 - 2
8805-
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8806-
Defn: a1 |--> a^2 + 3/2,
8807-
None),
8808-
(Number Field in a4 with defining polynomial x^4 + 1,
8809-
Ring morphism:
8810-
From: Number Field in a4 with defining polynomial x^4 + 1
8811-
To: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8812-
Defn: a4 |--> a^3 + 1/2*a^2 + 5/2*a + 3/4,
8813-
Ring morphism:
8814-
From: Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8815-
To: Number Field in a4 with defining polynomial x^4 + 1
8816-
Defn: a |--> -1/2*a4^3 + a4^2 - 1/2*a4)]
8783+
sage: K
8784+
Number Field in a with defining polynomial 2*x^4 + 6*x^2 + 1/2
8785+
sage: sorted([F.discriminant() for F, _, _ in K.subfields()])
8786+
[-8, -4, 1, 8, 256]
88178787
"""
88188788
return self._subfields_helper(degree=degree, name=name,
88198789
both_maps=True, optimize=False)

0 commit comments

Comments
 (0)