gh-84623: Move imports in doctests (#94133)

Move imports in doctests to prevent false alarms in pyflakes.
This commit is contained in:
Victor Stinner 2022-06-22 22:24:45 +02:00 committed by GitHub
parent c1fb12e5af
commit e52009d3f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -8,6 +8,7 @@ We're going the use these types for extra testing
We're defining four helper functions
>>> from test import support
>>> def e(a,b):
... print(a, b)
@ -522,7 +523,6 @@ Same with keyword only args:
import doctest
import unittest
from test import support
def load_tests(loader, tests, pattern):
tests.addTest(doctest.DocTestSuite())