mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
gh-84623: Move imports in doctests (#94133)
Move imports in doctests to prevent false alarms in pyflakes.
This commit is contained in:
parent
c1fb12e5af
commit
e52009d3f6
3 changed files with 5 additions and 5 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue