Skip to content

Commit

Permalink
fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
infmagic2047 committed Aug 28, 2023
1 parent fd38365 commit 4b85613
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/combinat/cluster_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _repr_(self):
sage: ClusterComplex(['A', 2])._repr_()
"Cluster complex of type ['A', 2] with 5 vertices and 5 facets"
"""
if k == 1:
if self._k == 1:
name = 'Cluster complex'
else:
name = 'Multi-cluster complex'
Expand Down
3 changes: 3 additions & 0 deletions src/sage/structure/sage_object.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ cdef class SageObject:
sage: P.rename('A polynomial ring')
sage: P.get_custom_name()
'A polynomial ring'
sage: P.reset_name()
sage: P.get_custom_name() is None
True
"""
try:
return self._SageObject__custom_name
Expand Down

0 comments on commit 4b85613

Please sign in to comment.