]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92514: Remove unused test.support.BasicTestRunner (#92515)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Thu, 12 May 2022 14:24:04 +0000 (07:24 -0700)
committerGitHub <noreply@github.com>
Thu, 12 May 2022 14:24:04 +0000 (07:24 -0700)
Doc/library/test.rst
Lib/test/support/__init__.py
Misc/NEWS.d/next/Tests/2022-05-08-15-40-41.gh-issue-92514.Xbf5JY.rst [new file with mode: 0644]

index 699db14596f250954232c8d1d2d4472e717c6366..707e966455ceb5cfa25e37c917763b04c244a8fb 100644 (file)
@@ -980,13 +980,6 @@ The :mod:`test.support` module defines the following classes:
       Try to match a single stored value (*dv*) with a supplied value (*v*).
 
 
-.. class:: BasicTestRunner()
-
-   .. method:: run(test)
-
-      Run *test* and return the result.
-
-
 :mod:`test.support.socket_helper` --- Utilities for socket tests
 ================================================================
 
index 3b2f33979db9a8ede633858a49234a77290008a6..41502cf4e97be8caae81a140f1fa857b7a3ad8da 100644 (file)
@@ -36,7 +36,7 @@ __all__ = [
     "is_resource_enabled", "requires", "requires_freebsd_version",
     "requires_linux_version", "requires_mac_ver",
     "check_syntax_error",
-    "BasicTestRunner", "run_unittest", "run_doctest",
+    "run_unittest", "run_doctest",
     "requires_gzip", "requires_bz2", "requires_lzma",
     "bigmemtest", "bigaddrspacetest", "cpython_only", "get_attribute",
     "requires_IEEE_754", "requires_zlib",
@@ -983,12 +983,6 @@ def bigaddrspacetest(f):
 #=======================================================================
 # unittest integration.
 
-class BasicTestRunner:
-    def run(self, test):
-        result = unittest.TestResult()
-        test(result)
-        return result
-
 def _id(obj):
     return obj
 
diff --git a/Misc/NEWS.d/next/Tests/2022-05-08-15-40-41.gh-issue-92514.Xbf5JY.rst b/Misc/NEWS.d/next/Tests/2022-05-08-15-40-41.gh-issue-92514.Xbf5JY.rst
new file mode 100644 (file)
index 0000000..6b82196
--- /dev/null
@@ -0,0 +1 @@
+Remove unused ``test.support.BasicTestRunner``. Patch by Jelle Zijlstra.