Fix syntax warnings in tests introduced in bpo-35942. (GH-11934)

1 file changed