File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,16 @@ if the failures are transient or consistent.
8686The ``-uall `` flag allows the use of all available
8787resources so as to not skip tests requiring, e.g., Internet access.
8888
89- To check for reference leaks (only needed if you modified C code), use the
90- ``-R `` flag. For example, ``-R 3:2 `` will first run the test 3 times to settle
91- down the reference count, and then run it 2 more times to verify if there are
92- any leaks.
89+ To check for reference leaks (only needed if you modified C code),
90+ you can enable reference leak checking during testing using the ``-R `` flag.
91+ For example, using the command::
92+
93+ python -m test <test_name> -R <warmups>:<repeats>
94+
95+ This enables the refleak checker option, allowing you to perform warm-up runs
96+ to stabilize reference counts followed by additional runs to verify any leaks.
97+ For instance, ``-R 3:2 `` will first run the test 3 times to settle down the
98+ reference count, and then run it 2 more times to check for leaks.
9399
94100You can also execute the ``Tools/scripts/run_tests.py `` script as found in a
95101CPython checkout. The script tries to balance speed with thoroughness. But if
You can’t perform that action at this time.
0 commit comments