mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Ref #5273: doctest: add test for skipif calling global setup/cleanup
Ensure that `doctest_global_setup` and `doctest_global_cleanup` are executed before and after evaluating each `:skipif:` option.
This commit is contained in:
@@ -7,4 +7,10 @@ exclude_patterns = ['_build']
|
||||
|
||||
doctest_global_setup = '''
|
||||
from test_ext_doctest import record
|
||||
|
||||
record('doctest_global_setup', 'body', True)
|
||||
'''
|
||||
|
||||
doctest_global_cleanup = '''
|
||||
record('doctest_global_cleanup', 'body', True)
|
||||
'''
|
||||
Reference in New Issue
Block a user