rewrite nocaret test to not rely on a specific SyntaxError
2 files changed