Skip to content

How can I clear/shadow globals before doctests are run? #8791

Answered by RonnyPfannschmidt
adeak asked this question in Q&A
Discussion options

You must be logged in to vote

its not effectively possible

emptying the global name-space practically would break code using the classes

same goes for using modified copies and potentially a number of other details

this should first be experimented with in a plugin to figure how to make it sensible

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@adeak
Comment options

@adeak
Comment options

@RonnyPfannschmidt
Comment options

@adeak
Comment options

Answer selected by adeak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants