summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_eintr.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-107851: Fix spurious failures in fcntl eintr tests (#121556)Sam Gross2024-07-101-17/+20
| | | | | | | | | | On heavily loaded machines, the subprocess may finish its sleep before the parent process manages to synchronize with it via a failed lock. This leads to errors like: Exception: failed to sync child in 300.3 sec Use pipes instead to mutually synchronize between parent and child.
* gh-109592: test_eintr tolerates 20 ms when comparing timings (#110102)Victor Stinner2023-09-291-7/+16
|
* Tests call sleeping_retry() with SHORT_TIMEOUT (#93870)Victor Stinner2022-06-151-1/+1
| | | | | | | Tests now call busy_retry() and sleeping_retry() with SHORT_TIMEOUT or LONG_TIMEOUT (of test.support), rather than hardcoded constants. Add also WAIT_ACTIVE_CHILDREN_TIMEOUT constant to _test_multiprocessing.
* Use support.sleeping_retry() and support.busy_retry() (#93848)Victor Stinner2022-06-151-7/+7
| | | | | | * Replace time.sleep(0.010) with sleeping_retry() to use an exponential sleep. * support.wait_process(): reuse sleeping_retry(). * _test_eintr: remove unused variables.
* bpo-42639: Add script_helper.run_test_script() (GH-23777)Victor Stinner2020-12-151-0/+530
* Add run_test_script() function to test.support.script_helper. * Rename Lib/test/eintrdata/eintr_tester.py to Lib/test/_test_eintr.py. * test_eintr.py uses run_test_script().