Skip to content

Commit 93eb4f8

Browse files
don't check specific error message
1 parent b70aebe commit 93eb4f8

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# All available hooks: https://pre-commit.com/hooks.html
22
# R specific hooks: https://github.com/lorenzwalthert/precommit
33
default_stages: [commit]
4+
default_language_version:
5+
python: python3
46

57
repos:
68
- repo: https://github.com/lorenzwalthert/precommit

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
* terminate running jobs on new push to save resources (#888).
8484
* Use the {touchstone} GitHub Action instead of the literal script (#889).
8585
* upgrade R CMD check Github Actions to use `v2`.
86+
* {styler} test are relaxed to not assume a specific error message on the
87+
wrong usage of `_` (#929).
8688

8789
# styler 1.6.2
8890

tests/testthat/test-escaping.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test_that("escaping of characters works", {
1313

1414
expect_error(test_collection("escaping", "fail-parsing-3",
1515
transformer = style_text
16-
), "<text>:2:3: unexpected input\n1: \n2: 1 _\n ^", fixed = TRUE)
16+
))
1717

1818
expect_error(test_collection("escaping", "fail-parsing-4",
1919
transformer = style_text

0 commit comments

Comments
 (0)