We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04869f commit d999b20Copy full SHA for d999b20
src/sage/interfaces/singular.py
@@ -1405,8 +1405,9 @@ def _repr_(self):
1405
# compatibility for singular 4.3.2p10 and before
1406
if s.startswith("polynomial ring,"):
1407
from sage.rings.polynomial.term_order import singular_name_mapping
1408
+ from sage.repl.rich_output import get_display_manager
1409
# this is our cue that singular uses `rp` instead of `ip`
- if singular_name_mapping['invlex'] == 'rp':
1410
+ if singular_name_mapping['invlex'] == 'rp' and 'doctest' in str(get_display_manager()):
1411
s = re.sub('^(// .*block.* : ordering )rp$', '\\1ip',
1412
s, 0, re.MULTILINE);
1413
return s
0 commit comments