Skip to content

Commit 8a0d9a6

Browse files
gh-92514: Remove unused test.support.BasicTestRunner (#92515)
1 parent 6582c96 commit 8a0d9a6

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

Doc/library/test.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -980,13 +980,6 @@ The :mod:`test.support` module defines the following classes:
980980
Try to match a single stored value (*dv*) with a supplied value (*v*).
981981

982982

983-
.. class:: BasicTestRunner()
984-
985-
.. method:: run(test)
986-
987-
Run *test* and return the result.
988-
989-
990983
:mod:`test.support.socket_helper` --- Utilities for socket tests
991984
================================================================
992985

Lib/test/support/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"is_resource_enabled", "requires", "requires_freebsd_version",
3737
"requires_linux_version", "requires_mac_ver",
3838
"check_syntax_error",
39-
"BasicTestRunner", "run_unittest", "run_doctest",
39+
"run_unittest", "run_doctest",
4040
"requires_gzip", "requires_bz2", "requires_lzma",
4141
"bigmemtest", "bigaddrspacetest", "cpython_only", "get_attribute",
4242
"requires_IEEE_754", "requires_zlib",
@@ -983,12 +983,6 @@ def wrapper(self):
983983
#=======================================================================
984984
# unittest integration.
985985

986-
class BasicTestRunner:
987-
def run(self, test):
988-
result = unittest.TestResult()
989-
test(result)
990-
return result
991-
992986
def _id(obj):
993987
return obj
994988

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unused ``test.support.BasicTestRunner``. Patch by Jelle Zijlstra.

0 commit comments

Comments
 (0)