Thanks for looking into it. I like to start with a separate test function which stays as close as possible to the problematic application. And you are right, this issue is also observable in test_OpenProcess but hidden by the missing broken.
v3: Removed separate test function and adjusted existing test.