gh-134357: Remove unused imports in tests (#134340)

This commit is contained in:
Hugo van Kemenade 2025-05-25 23:09:02 +03:00 committed by GitHub
parent 24a47155d2
commit 328a778db8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 26 additions and 48 deletions

View file

@ -553,7 +553,7 @@ class PydocDocTest(unittest.TestCase):
# of the known subclasses of object. (doc.docclass() used to
# fail if HeapType was imported before running this test, like
# when running tests sequentially.)
from _testcapi import HeapType
from _testcapi import HeapType # noqa: F401
except ImportError:
pass
text = doc.docclass(object)