gh-120417: Remove unused imports in tests (part 4) (#120632)

This commit is contained in:
Victor Stinner 2024-06-17 17:35:20 +02:00 committed by GitHub
parent 5c4235cd8c
commit f4d301d8b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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