]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42641: Enhance test_select.test_select() (GH-23782)
authorVictor Stinner <vstinner@python.org>
Tue, 15 Dec 2020 17:06:36 +0000 (18:06 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Dec 2020 17:06:36 +0000 (18:06 +0100)
commit7f14a3756b61272cc15f24302589874b125c2f04
treea0030d3777581638ecc38521eb9fc944b1f540f5
parentc8a10d2fabff492ab352501c316baf5f2fc6510e
bpo-42641: Enhance test_select.test_select() (GH-23782)

Enhance test_select.test_select(): it now takes 500 ms rather than 10
seconds.

* Use Python rather than a shell as the child process to make the
  test more portable.
* Use a sleep of 50 ms per line rather than 1 second.
* Use subprocess.Popen rather than os.popen().
Lib/test/test_select.py
Misc/NEWS.d/next/Tests/2020-12-15-17-38-04.bpo-42641.uzwlF_.rst [new file with mode: 0644]