bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494)

1 file changed