[Python-checkins] cpython: Remove unused support.run_unittest imports.

serhiy.storchaka python-checkins at python.org
Sun Apr 24 17:12:54 EDT 2016


https://hg.python.org/cpython/rev/9348e88c89c8
changeset:   101127:9348e88c89c8
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Apr 24 23:42:49 2016 +0300
summary:
  Remove unused support.run_unittest imports.
It is not needed since tests use unittest.main().

files:
  Lib/test/test_charmapcodec.py           |  2 +-
  Lib/test/test_codecencodings_cn.py      |  1 -
  Lib/test/test_codecencodings_hk.py      |  1 -
  Lib/test/test_codecencodings_iso2022.py |  1 -
  Lib/test/test_codecencodings_jp.py      |  1 -
  Lib/test/test_codecencodings_kr.py      |  1 -
  Lib/test/test_codecencodings_tw.py      |  1 -
  Lib/test/test_codecmaps_jp.py           |  1 -
  Lib/test/test_epoll.py                  |  1 -
  Lib/test/test_hmac.py                   |  1 -
  Lib/test/test_list.py                   |  2 +-
  Lib/test/test_pow.py                    |  2 +-
  Lib/test/test_range.py                  |  2 +-
  Lib/test/test_userdict.py               |  2 +-
  Lib/test/test_userlist.py               |  2 +-
  15 files changed, 6 insertions(+), 15 deletions(-)


diff --git a/Lib/test/test_charmapcodec.py b/Lib/test/test_charmapcodec.py
--- a/Lib/test/test_charmapcodec.py
+++ b/Lib/test/test_charmapcodec.py
@@ -9,7 +9,7 @@
 
 """#"
 
-import test.support, unittest
+import unittest
 
 import codecs
 
diff --git a/Lib/test/test_codecencodings_cn.py b/Lib/test/test_codecencodings_cn.py
--- a/Lib/test/test_codecencodings_cn.py
+++ b/Lib/test/test_codecencodings_cn.py
@@ -3,7 +3,6 @@
 #   Codec encoding tests for PRC encodings.
 #
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_codecencodings_hk.py b/Lib/test/test_codecencodings_hk.py
--- a/Lib/test/test_codecencodings_hk.py
+++ b/Lib/test/test_codecencodings_hk.py
@@ -3,7 +3,6 @@
 #   Codec encoding tests for HongKong encodings.
 #
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_codecencodings_iso2022.py b/Lib/test/test_codecencodings_iso2022.py
--- a/Lib/test/test_codecencodings_iso2022.py
+++ b/Lib/test/test_codecencodings_iso2022.py
@@ -1,6 +1,5 @@
 # Codec encoding tests for ISO 2022 encodings.
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_codecencodings_jp.py b/Lib/test/test_codecencodings_jp.py
--- a/Lib/test/test_codecencodings_jp.py
+++ b/Lib/test/test_codecencodings_jp.py
@@ -3,7 +3,6 @@
 #   Codec encoding tests for Japanese encodings.
 #
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_codecencodings_kr.py b/Lib/test/test_codecencodings_kr.py
--- a/Lib/test/test_codecencodings_kr.py
+++ b/Lib/test/test_codecencodings_kr.py
@@ -3,7 +3,6 @@
 #   Codec encoding tests for ROK encodings.
 #
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_codecencodings_tw.py b/Lib/test/test_codecencodings_tw.py
--- a/Lib/test/test_codecencodings_tw.py
+++ b/Lib/test/test_codecencodings_tw.py
@@ -3,7 +3,6 @@
 #   Codec encoding tests for ROC encodings.
 #
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_codecmaps_jp.py b/Lib/test/test_codecmaps_jp.py
--- a/Lib/test/test_codecmaps_jp.py
+++ b/Lib/test/test_codecmaps_jp.py
@@ -3,7 +3,6 @@
 #   Codec mapping tests for Japanese encodings
 #
 
-from test import support
 from test import multibytecodec_support
 import unittest
 
diff --git a/Lib/test/test_epoll.py b/Lib/test/test_epoll.py
--- a/Lib/test/test_epoll.py
+++ b/Lib/test/test_epoll.py
@@ -28,7 +28,6 @@
 import time
 import unittest
 
-from test import support
 if not hasattr(select, "epoll"):
     raise unittest.SkipTest("test works only on Linux 2.6")
 
diff --git a/Lib/test/test_hmac.py b/Lib/test/test_hmac.py
--- a/Lib/test/test_hmac.py
+++ b/Lib/test/test_hmac.py
@@ -3,7 +3,6 @@
 import hashlib
 import unittest
 import warnings
-from test import support
 
 
 def ignore_warning(func):
diff --git a/Lib/test/test_list.py b/Lib/test/test_list.py
--- a/Lib/test/test_list.py
+++ b/Lib/test/test_list.py
@@ -1,5 +1,5 @@
 import sys
-from test import support, list_tests
+from test import list_tests
 import pickle
 import unittest
 
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py
--- a/Lib/test/test_pow.py
+++ b/Lib/test/test_pow.py
@@ -1,4 +1,4 @@
-import test.support, unittest
+import unittest
 
 class PowTest(unittest.TestCase):
 
diff --git a/Lib/test/test_range.py b/Lib/test/test_range.py
--- a/Lib/test/test_range.py
+++ b/Lib/test/test_range.py
@@ -1,6 +1,6 @@
 # Python test set -- built-in functions
 
-import test.support, unittest
+import unittest
 import sys
 import pickle
 import itertools
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py
--- a/Lib/test/test_userdict.py
+++ b/Lib/test/test_userdict.py
@@ -1,6 +1,6 @@
 # Check every path through every method of UserDict
 
-from test import support, mapping_tests
+from test import mapping_tests
 import unittest
 import collections
 
diff --git a/Lib/test/test_userlist.py b/Lib/test/test_userlist.py
--- a/Lib/test/test_userlist.py
+++ b/Lib/test/test_userlist.py
@@ -1,7 +1,7 @@
 # Check every path through every method of UserList
 
 from collections import UserList
-from test import support, list_tests
+from test import list_tests
 import unittest
 
 class UserListTest(list_tests.CommonTest):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list