Skip to content

Commit 0008fc2

Browse files
fmayernekoshirro
authored andcommitted
[NFC] [test] [libcxx] Fix invalid escape sequences (#168636)
``` >>> "_target-has-llvm-21 || target={{.+}}-apple-macosx{{26.[0-9](.\d+)?}}" == r"_target-has-llvm-21 || target={{.+}}-apple-macosx{{26.[0-9](.\\ d+)?}}" <python-input-6>:1: SyntaxWarning: invalid escape sequence '\d' True >>> "_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\d+)?}}" == r"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\\ d+)?}}" <python-input-7>:1: SyntaxWarning: invalid escape sequence '\d' True >>> "_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\d+)?}}" == r"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\\ d+)?}}" <python-input-8>:1: SyntaxWarning: invalid escape sequence '\d' True >>> "_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\d+)?}}" == r"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\\ d+)?}}" <python-input-9>:1: SyntaxWarning: invalid escape sequence '\d' True ``` Signed-off-by: Hafidz Muzakky <[email protected]>
1 parent c912e71 commit 0008fc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/utils/libcxx/test/features/availability.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,28 @@
2929
Feature(
3030
name="_target-has-llvm-20",
3131
when=lambda cfg: BooleanExpression.evaluate(
32-
"_target-has-llvm-21 || target={{.+}}-apple-macosx{{26.[0-9](.\d+)?}}",
32+
r"_target-has-llvm-21 || target={{.+}}-apple-macosx{{26.[0-9](.\d+)?}}",
3333
cfg.available_features,
3434
),
3535
),
3636
Feature(
3737
name="_target-has-llvm-19",
3838
when=lambda cfg: BooleanExpression.evaluate(
39-
"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\d+)?}}",
39+
r"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\d+)?}}",
4040
cfg.available_features,
4141
),
4242
),
4343
Feature(
4444
name="_target-has-llvm-18",
4545
when=lambda cfg: BooleanExpression.evaluate(
46-
"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\d+)?}}",
46+
r"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\d+)?}}",
4747
cfg.available_features,
4848
),
4949
),
5050
Feature(
5151
name="_target-has-llvm-17",
5252
when=lambda cfg: BooleanExpression.evaluate(
53-
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\d+)?}}",
53+
r"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\d+)?}}",
5454
cfg.available_features,
5555
),
5656
),

0 commit comments

Comments
 (0)