]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make test_fcntl quiet (#108758)
authorVictor Stinner <vstinner@python.org>
Fri, 1 Sep 2023 12:59:09 +0000 (14:59 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2023 12:59:09 +0000 (14:59 +0200)
commit23f54c120067c96973619b9501fe4dff1b055188
treef76479ee74ec5a365871e0021d20f4360adc0eac
parent3047f09490ae63f25d57efe1d14a9a65d9b5f6db
Make test_fcntl quiet (#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.
Lib/test/test_fcntl.py