mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
gh-92514: Remove unused test.support.BasicTestRunner (#92515)
This commit is contained in:
parent
6582c96454
commit
8a0d9a6bb7
3 changed files with 2 additions and 14 deletions
|
|
@ -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*).
|
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
|
:mod:`test.support.socket_helper` --- Utilities for socket tests
|
||||||
================================================================
|
================================================================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ __all__ = [
|
||||||
"is_resource_enabled", "requires", "requires_freebsd_version",
|
"is_resource_enabled", "requires", "requires_freebsd_version",
|
||||||
"requires_linux_version", "requires_mac_ver",
|
"requires_linux_version", "requires_mac_ver",
|
||||||
"check_syntax_error",
|
"check_syntax_error",
|
||||||
"BasicTestRunner", "run_unittest", "run_doctest",
|
"run_unittest", "run_doctest",
|
||||||
"requires_gzip", "requires_bz2", "requires_lzma",
|
"requires_gzip", "requires_bz2", "requires_lzma",
|
||||||
"bigmemtest", "bigaddrspacetest", "cpython_only", "get_attribute",
|
"bigmemtest", "bigaddrspacetest", "cpython_only", "get_attribute",
|
||||||
"requires_IEEE_754", "requires_zlib",
|
"requires_IEEE_754", "requires_zlib",
|
||||||
|
|
@ -983,12 +983,6 @@ def bigaddrspacetest(f):
|
||||||
#=======================================================================
|
#=======================================================================
|
||||||
# unittest integration.
|
# unittest integration.
|
||||||
|
|
||||||
class BasicTestRunner:
|
|
||||||
def run(self, test):
|
|
||||||
result = unittest.TestResult()
|
|
||||||
test(result)
|
|
||||||
return result
|
|
||||||
|
|
||||||
def _id(obj):
|
def _id(obj):
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Remove unused ``test.support.BasicTestRunner``. Patch by Jelle Zijlstra.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue