Skip to content

Conversation

@skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Nov 9, 2023

This partially reverts patch from https://bugs.python.org/issue8048

Now it's possible to test interactive examples in applications, which use cusomized sys.displayhook, e.g. SymPy, without nasty workarrounds (i.e. overriding the sys.__displayhook__ value before each tests).


This is a restored PR #25651 with minimal changes (internal for a doctest sys.displayhook changes now aren't leaked out).


📚 Documentation preview 📚: https://cpython-previews--111871.org.readthedocs.build/

This partially reverts patch from https://bugs.python.org/issue8048

Now it's possible to test interactive examples in applications, which
use cusomized sys.displayhook, e.g. SymPy, without nasty workarrounds
(i.e. overriding the sys.__displayhook__ value before each tests).
@skirpichev skirpichev closed this Nov 13, 2025
@skirpichev skirpichev deleted the doctest-displayhook-fix-70280 branch November 13, 2025 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants