Skip to content

Commit

Permalink
pythongh-92514: Remove unused test.support.BasicTestRunner (python#92515
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JelleZijlstra committed May 12, 2022
1 parent 6582c96 commit 8a0d9a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
7 changes: 0 additions & 7 deletions Doc/library/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
================================================================

Expand Down
8 changes: 1 addition & 7 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"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",
Expand Down Expand Up @@ -983,12 +983,6 @@ def wrapper(self):
#=======================================================================
# unittest integration.

class BasicTestRunner:
def run(self, test):
result = unittest.TestResult()
test(result)
return result

def _id(obj):
return obj

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unused ``test.support.BasicTestRunner``. Patch by Jelle Zijlstra.

0 comments on commit 8a0d9a6

Please sign in to comment.