Skip to content

Commit 21e2a49

Browse files
author
Matthias Koeppe
committed
src/sage/databases/symbolic_data.py: Update doctest for error message details in Python 3.12
1 parent c48dd14 commit 21e2a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/databases/symbolic_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _dom2ideal(node):
153153
name = self.__genpath + name + ".xml"
154154
open(name)
155155
except OSError:
156-
raise AttributeError("No ideal matching '%s' found in database." % orig_name)
156+
raise AttributeError(f"no ideal matching '{orig_name}' found in database")
157157

158158
dom = parse(name)
159159
res = _dom2ideal(dom)
@@ -184,7 +184,7 @@ def __getattr__(self, name):
184184
sage: sd.Cyclic5 # optional - database_symbolic_data
185185
Traceback (most recent call last):
186186
...
187-
AttributeError: No ideal matching 'Cyclic5' found in database.
187+
AttributeError: no ideal matching 'Cyclic5' found in database...
188188
189189
sage: sd.Cyclic_5 # optional - database_symbolic_data
190190
Ideal (v + w + x + y + z,

0 commit comments

Comments
 (0)