]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] Make test_fcntl quiet (GH-108758) (#108760)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Sep 2023 13:36:52 +0000 (06:36 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 13:36:52 +0000 (15:36 +0200)
commit4dc07d2bde2e219f3b6995891b8cda3e8094804a
tree0a63c56b01501056853aa374200180d430ad4310
parent712994e1ab37bc1fdb0b9fcb8cf215d923c0341c
[3.12] Make test_fcntl quiet (GH-108758) (#108760)

Make test_fcntl quiet (GH-108758)

Running test_fcntl logs two "struct.pack: ..." lines because
multiprocessing imports test_fcntl twice with
test.support.verbose=1. Move get_lockdata() inside TestFcntl test
case and only call it where it's needed, to stop logging these lines.
(cherry picked from commit 23f54c120067c96973619b9501fe4dff1b055188)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_fcntl.py