mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Remove more unused imports in tests.
This commit is contained in:
parent
fd2839e1de
commit
a6f26c1d34
11 changed files with 1 additions and 12 deletions
|
@ -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):
|
||||||
|
|
|
@ -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 = "<"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue