mirror of https://github.com/python/cpython
gh-120417: Remove unused imports in tests (part 4) (#120632)
This commit is contained in:
parent
5c4235cd8c
commit
f4d301d8b9
|
@ -13,7 +13,6 @@ import codecs
|
||||||
import subprocess
|
import subprocess
|
||||||
import binascii
|
import binascii
|
||||||
import collections
|
import collections
|
||||||
import time
|
|
||||||
import zoneinfo
|
import zoneinfo
|
||||||
from test import support
|
from test import support
|
||||||
from test.support import os_helper
|
from test.support import os_helper
|
||||||
|
|
|
@ -8,7 +8,6 @@ import itertools
|
||||||
import pprint
|
import pprint
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import test.support
|
|
||||||
import types
|
import types
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,9 @@ import itertools
|
||||||
import functools
|
import functools
|
||||||
import rlcompleter
|
import rlcompleter
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from .support import handle_all_events, handle_events_narrow_console, code_to_events, prepare_reader
|
from .support import handle_all_events, handle_events_narrow_console, code_to_events, prepare_reader
|
||||||
from test.support import import_helper
|
|
||||||
from _pyrepl.console import Event
|
from _pyrepl.console import Event
|
||||||
from _pyrepl.reader import Reader
|
from _pyrepl.reader import Reader
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# to ensure the Queue locks remain stable.
|
# to ensure the Queue locks remain stable.
|
||||||
import itertools
|
import itertools
|
||||||
import random
|
import random
|
||||||
import sys
|
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
|
@ -6,7 +6,6 @@ import locale
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
||||||
import time
|
|
||||||
import unittest
|
import unittest
|
||||||
import warnings
|
import warnings
|
||||||
from re import Scanner
|
from re import Scanner
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import pickle
|
import pickle
|
||||||
import textwrap
|
|
||||||
import types
|
import types
|
||||||
import unittest
|
import unittest
|
||||||
from test.support import check_syntax_error, run_code
|
from test.support import check_syntax_error, run_code
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
import random
|
|
||||||
import re
|
import re
|
||||||
import threading
|
|
||||||
import time
|
|
||||||
import unittest
|
import unittest
|
||||||
from test.support import import_helper, os_helper
|
from test.support import import_helper, os_helper
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue