bpo-32482: Fix suspicious code in tests for syntax and grammar. (#5086)

2 files changed