Fix SyntaxWarning in test_syntax.py (GH-112944)

1 file changed