flake8-rst icon indicating copy to clipboard operation
flake8-rst copied to clipboard

Use `testsetup` for module bootstrap

Open kataev opened this issue 6 years ago • 0 comments

.. testsetup:: *

    from collections import *
    import itertools
    __name__ = '<doctest>'

LIke here https://github.com/python/cpython/blob/master/Doc/library/collections.rst#id3

kataev avatar Feb 05 '19 08:02 kataev