summaryrefslogtreecommitdiffstats
path: root/Tools/ccbench
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-25 01:01:08 (GMT)
committerGitHub <noreply@github.com>2019-06-25 01:01:08 (GMT)
commit36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5 (patch)
tree72d392c36e3deeff6a76966ecffca4623a1e72d6 /Tools/ccbench
parent9fc720e5e4f772598013ea48a3f0d22b2b6b04fa (diff)
downloadcpython-36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5.zip
cpython-36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5.tar.gz
cpython-36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5.tar.bz2
bpo-37392: Remove sys.setcheckinterval() (GH-14355)
Remove sys.getcheckinterval() and sys.setcheckinterval() functions. They were deprecated since Python 3.2. Use sys.getswitchinterval() and sys.setswitchinterval() instead. Remove also check_interval field of the PyInterpreterState structure.
Diffstat (limited to 'Tools/ccbench')
-rw-r--r--Tools/ccbench/ccbench.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/ccbench/ccbench.py b/Tools/ccbench/ccbench.py
index 60cec3e..4f77a65 100644
--- a/Tools/ccbench/ccbench.py
+++ b/Tools/ccbench/ccbench.py
@@ -541,10 +541,12 @@ def main():
help="run I/O bandwidth tests")
parser.add_option("-i", "--interval",
action="store", type="int", dest="check_interval", default=None,
- help="sys.setcheckinterval() value")
+ help="sys.setcheckinterval() value "
+ "(Python 3.8 and older)")
parser.add_option("-I", "--switch-interval",
action="store", type="float", dest="switch_interval", default=None,
- help="sys.setswitchinterval() value")
+ help="sys.setswitchinterval() value "
+ "(Python 3.2 and newer)")
parser.add_option("-n", "--num-threads",
action="store", type="int", dest="nthreads", default=4,
help="max number of threads in tests")