diff --git a/tests/_Syntax_Failure/syntax_test_fail.c++ b/tests/_Syntax_Failure/syntax_test_fail.c++ index c3b3db6a..4af04b6e 100644 --- a/tests/_Syntax_Failure/syntax_test_fail.c++ +++ b/tests/_Syntax_Failure/syntax_test_fail.c++ @@ -9,8 +9,8 @@ /* foo */ // ^ source.c comment.block -// <- punctuation.definition.comment.c -// ^ punctuation.definition.comment.c +// <- punctuation.definition.comment +// ^ punctuation.definition.comment #include "stdio.h" // <- meta.preprocessor diff --git a/tests/_Syntax_Success/syntax_test_success.c++ b/tests/_Syntax_Success/syntax_test_success.c++ index be89c137..f7ea4533 100644 --- a/tests/_Syntax_Success/syntax_test_success.c++ +++ b/tests/_Syntax_Success/syntax_test_success.c++ @@ -9,8 +9,8 @@ /* foo */ // ^ source.c comment.block -// <- punctuation.definition.comment.c -// ^ punctuation.definition.comment.c +// <- punctuation.definition.comment +// ^ punctuation.definition.comment #include "stdio.h" // <- meta.preprocessor diff --git a/tests/test_3141596.py b/tests/test_3141596.py index 4d24a32c..4a081be3 100644 --- a/tests/test_3141596.py +++ b/tests/test_3141596.py @@ -162,7 +162,7 @@ class TestSyntax(UnitTestingTestCase): @with_package("_Syntax_Failure", syntax_test=True) def test_fail_syntax(self, txt): - self.assertRegexContains(txt, r'^FAILED: 1 of 21 assertions in 1 file failed$') + self.assertRegexContains(txt, r'^FAILED: 1 of \d+ assertions in 1 file failed$') @with_package("_Syntax_Success", syntax_test=True) def test_success_syntax(self, txt):