Skip to content

Commit

Permalink
pythongh-120417: Remove unused imports in tests (part 3) (python#120631)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored and estyxx committed Jul 17, 2024
1 parent b2c48ae commit 15a194d
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Lib/test/test_imaplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import re
import socket

from test.support import verbose, run_with_tz, run_with_locale, cpython_only, requires_resource
from test.support import verbose, run_with_tz, run_with_locale, cpython_only
from test.support import hashlib_helper
from test.support import threading_helper
import unittest
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from test.support.import_helper import DirsOnSysPath, ready_to_import
from test.support.os_helper import TESTFN, temp_cwd
from test.support.script_helper import assert_python_ok, assert_python_failure, kill_python
from test.support import has_subprocess_support, SuppressCrashReport
from test.support import has_subprocess_support
from test import support

from test.test_inspect import inspect_fodder as mod
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_int.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
import time

import unittest
from unittest import mock
Expand Down
3 changes: 1 addition & 2 deletions Lib/test/test_interpreters/test_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import pickle
import sys
from textwrap import dedent, indent
from textwrap import dedent
import threading
import types
import unittest
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_interpreters/test_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import threading
from textwrap import dedent
import unittest
import time

from test.support import import_helper, Py_DEBUG
# Raise SkipTest if subinterpreters not supported.
Expand Down
5 changes: 1 addition & 4 deletions Lib/test/test_interpreters/utils.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
from collections import namedtuple
import contextlib
import json
import io
import os
import os.path
import pickle
import queue
#import select
import subprocess
import sys
import tempfile
from textwrap import dedent, indent
from textwrap import dedent
import threading
import types
import unittest
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_mailbox.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import sys
import time
import stat
import socket
import email
import email.message
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import textwrap
import types
import unittest
import asyncio

import test.support
from test.support import requires_specialization, script_helper
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_peepholer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import dis
from itertools import combinations, product
import opcode
import sys
import textwrap
import unittest
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_perf_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sysconfig
import os
import pathlib
import shutil
from test import support
from test.support.script_helper import (
make_script,
Expand Down

0 comments on commit 15a194d

Please sign in to comment.