bpo-29585: fix test fail on macOS Framework build (GH-2928)

1 file changed