Skip to content

Commit

Permalink
src/sage/databases/symbolic_data.py: Update doctest for error message…
Browse files Browse the repository at this point in the history
… details in Python 3.12
  • Loading branch information
mkoeppe committed Jun 16, 2024
1 parent c48dd14 commit 21e2a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/databases/symbolic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _dom2ideal(node):
name = self.__genpath + name + ".xml"
open(name)
except OSError:
raise AttributeError("No ideal matching '%s' found in database." % orig_name)
raise AttributeError(f"no ideal matching '{orig_name}' found in database")

dom = parse(name)
res = _dom2ideal(dom)
Expand Down Expand Up @@ -184,7 +184,7 @@ def __getattr__(self, name):
sage: sd.Cyclic5 # optional - database_symbolic_data
Traceback (most recent call last):
...
AttributeError: No ideal matching 'Cyclic5' found in database.
AttributeError: no ideal matching 'Cyclic5' found in database...
sage: sd.Cyclic_5 # optional - database_symbolic_data
Ideal (v + w + x + y + z,
Expand Down

0 comments on commit 21e2a49

Please sign in to comment.