Remove more unused imports in tests.

This commit is contained in:
Serhiy Storchaka 2016-04-25 00:05:30 +03:00
parent fd2839e1de
commit a6f26c1d34
11 changed files with 1 additions and 12 deletions

View file

@ -3,7 +3,6 @@ from ctypes.test import need_symbol
import unittest import unittest
import os import os
import ctypes
import _ctypes_test import _ctypes_test
class BITS(Structure): class BITS(Structure):

View file

@ -1,6 +1,6 @@
import unittest import unittest
from ctypes import * from ctypes import *
import re, struct, sys import re, sys
if sys.byteorder == "little": if sys.byteorder == "little":
THIS_ENDIAN = "<" THIS_ENDIAN = "<"

View file

@ -3,10 +3,8 @@
# Python imports # Python imports
import unittest import unittest
import sys
import os import os
import os.path import os.path
import re
from textwrap import dedent from textwrap import dedent
# Local imports # Local imports

View file

@ -10,7 +10,6 @@ sub-second periodicity (contrarily to signal()).
import contextlib import contextlib
import faulthandler import faulthandler
import io
import os import os
import select import select
import signal import signal

View file

@ -1,6 +1,5 @@
import os import os
import signal import signal
import subprocess
import unittest import unittest
from test import support from test import support

View file

@ -6,7 +6,6 @@ import importlib
import importlib.util import importlib.util
import os import os
import os.path import os.path
import shutil
import sys import sys
from test import support from test import support
import unittest import unittest

View file

@ -1,5 +1,4 @@
from test.test_json import PyTest, CTest from test.test_json import PyTest, CTest
import re
# 2007-10-05 # 2007-10-05
JSONDOCS = [ JSONDOCS = [

View file

@ -1,5 +1,4 @@
import unittest import unittest
from test.support import script_helper
from test import support from test import support
import subprocess import subprocess
import sys import sys

View file

@ -1,6 +1,5 @@
import unittest import unittest
from test import support from test import support
import filecmp
import os import os
import sys import sys
import subprocess import subprocess

View file

@ -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 from test.support.script_helper import assert_python_ok, assert_python_failure
import random import random
import re
import sys import sys
_thread = import_module('_thread') _thread = import_module('_thread')
threading = import_module('threading') threading = import_module('threading')

View file

@ -3,7 +3,6 @@ import os
import unittest import unittest
import importlib import importlib
from test import support from test import support
from fnmatch import fnmatch
basepath = os.path.dirname( # <src/install dir> basepath = os.path.dirname( # <src/install dir>
os.path.dirname( # Lib os.path.dirname( # Lib