Remove more unused imports in tests.
This commit is contained in:
parent
fd2839e1de
commit
a6f26c1d34
|
@ -3,7 +3,6 @@ from ctypes.test import need_symbol
|
|||
import unittest
|
||||
import os
|
||||
|
||||
import ctypes
|
||||
import _ctypes_test
|
||||
|
||||
class BITS(Structure):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
from ctypes import *
|
||||
import re, struct, sys
|
||||
import re, sys
|
||||
|
||||
if sys.byteorder == "little":
|
||||
THIS_ENDIAN = "<"
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
|
||||
# Python imports
|
||||
import unittest
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
import re
|
||||
from textwrap import dedent
|
||||
|
||||
# Local imports
|
||||
|
|
|
@ -10,7 +10,6 @@ sub-second periodicity (contrarily to signal()).
|
|||
|
||||
import contextlib
|
||||
import faulthandler
|
||||
import io
|
||||
import os
|
||||
import select
|
||||
import signal
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import unittest
|
||||
|
||||
from test import support
|
||||
|
|
|
@ -6,7 +6,6 @@ import importlib
|
|||
import importlib.util
|
||||
import os
|
||||
import os.path
|
||||
import shutil
|
||||
import sys
|
||||
from test import support
|
||||
import unittest
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from test.test_json import PyTest, CTest
|
||||
import re
|
||||
|
||||
# 2007-10-05
|
||||
JSONDOCS = [
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import unittest
|
||||
from test.support import script_helper
|
||||
from test import support
|
||||
import subprocess
|
||||
import sys
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import unittest
|
||||
from test import support
|
||||
import filecmp
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
|
|
@ -7,7 +7,6 @@ from test.support import verbose, import_module, cpython_only
|
|||
from test.support.script_helper import assert_python_ok, assert_python_failure
|
||||
|
||||
import random
|
||||
import re
|
||||
import sys
|
||||
_thread = import_module('_thread')
|
||||
threading = import_module('threading')
|
||||
|
|
|
@ -3,7 +3,6 @@ import os
|
|||
import unittest
|
||||
import importlib
|
||||
from test import support
|
||||
from fnmatch import fnmatch
|
||||
|
||||
basepath = os.path.dirname( # <src/install dir>
|
||||
os.path.dirname( # Lib
|
||||
|
|
Loading…
Reference in New Issue