From 2bc3197a354cf02b64593c055285df49c47b29ef Mon Sep 17 00:00:00 2001 From: Sebastian Spindler Date: Mon, 6 May 2024 18:08:59 +0200 Subject: [PATCH] Adapt length check for database update Amend: Added comment explaining the relaxed length test --- src/sage/databases/conway.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/sage/databases/conway.py b/src/sage/databases/conway.py index b1f76292ce8..54912a2471c 100644 --- a/src/sage/databases/conway.py +++ b/src/sage/databases/conway.py @@ -138,11 +138,16 @@ def __len__(self): """ Return the number of polynomials in this database. - TESTS:: + TESTS: + + The database currently contains `35357` polynomials, but due to + :issue:`35357` it will be extended by Conway polynomials of + degrees `1`, `2` and `3` for primes between `65537` and `110000`, + thus leading to a new total of `47090` entries:: sage: c = ConwayPolynomials() - sage: len(c) - 35357 + sage: len(c) in [35357, 47090] + True """ try: return self._len