Skip to content

Commit 083af9a

Browse files
committed
CI: adjust syntax tests
1 parent e478910 commit 083af9a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/_Syntax_Failure/syntax_test_fail.c++

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
/* foo */
1111
// ^ source.c comment.block
12-
// <- punctuation.definition.comment.c
13-
// ^ punctuation.definition.comment.c
12+
// <- punctuation.definition.comment
13+
// ^ punctuation.definition.comment
1414

1515
#include "stdio.h"
1616
// <- meta.preprocessor

tests/_Syntax_Success/syntax_test_success.c++

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
/* foo */
1111
// ^ source.c comment.block
12-
// <- punctuation.definition.comment.c
13-
// ^ punctuation.definition.comment.c
12+
// <- punctuation.definition.comment
13+
// ^ punctuation.definition.comment
1414

1515
#include "stdio.h"
1616
// <- meta.preprocessor

tests/test_3141596.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class TestSyntax(UnitTestingTestCase):
162162

163163
@with_package("_Syntax_Failure", syntax_test=True)
164164
def test_fail_syntax(self, txt):
165-
self.assertRegexContains(txt, r'^FAILED: 1 of 21 assertions in 1 file failed$')
165+
self.assertRegexContains(txt, r'^FAILED: 1 of \d+ assertions in 1 file failed$')
166166

167167
@with_package("_Syntax_Success", syntax_test=True)
168168
def test_success_syntax(self, txt):

0 commit comments

Comments
 (0)