diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-22 20:24:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 20:24:45 (GMT) |
commit | e52009d3f623c683aa22b4732fdf7fc2e55ede7c (patch) | |
tree | 9d61b42a12e2c4f1a628ce61f3cebc633dfa6363 /Lib/test/test_descrtut.py | |
parent | c1fb12e5afa09aca3134a9bc0116c31dbcccc5e9 (diff) | |
download | cpython-e52009d3f623c683aa22b4732fdf7fc2e55ede7c.zip cpython-e52009d3f623c683aa22b4732fdf7fc2e55ede7c.tar.gz cpython-e52009d3f623c683aa22b4732fdf7fc2e55ede7c.tar.bz2 |
gh-84623: Move imports in doctests (#94133)
Move imports in doctests to prevent false alarms in pyflakes.
Diffstat (limited to 'Lib/test/test_descrtut.py')
-rw-r--r-- | Lib/test/test_descrtut.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py index e01a31a..b4158eb 100644 --- a/Lib/test/test_descrtut.py +++ b/Lib/test/test_descrtut.py @@ -9,7 +9,6 @@ # deterministic. from test.support import sortdict -import pprint import doctest import unittest @@ -167,6 +166,7 @@ For instance of built-in types, x.__class__ is now the same as type(x): You can get the information from the list type: + >>> import pprint >>> pprint.pprint(dir(list)) # like list.__dict__.keys(), but sorted ['__add__', '__class__', |