Skip to content

Commit 634dce1

Browse files
Merge pull request #1181 from r-lib/issue-1180
Adjust to parser failures in r devel
2 parents 20c5b37 + 8d70633 commit 634dce1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_language_version:
66

77
repos:
88
- repo: https://github.com/lorenzwalthert/precommit
9-
rev: v0.3.2.9027
9+
rev: v0.4.0
1010
hooks:
1111
- id: style-files
1212
args:
@@ -101,7 +101,7 @@ repos:
101101
)$
102102
- id: pkgdown
103103
- repo: https://github.com/pre-commit/pre-commit-hooks
104-
rev: v4.4.0
104+
rev: v4.5.0
105105
hooks:
106106
- id: check-added-large-files
107107
args: ["--maxkb=200"]
@@ -119,7 +119,7 @@ repos:
119119
tests/testthat/_snaps/.*|
120120
)$
121121
- repo: https://github.com/lorenzwalthert/gitignore-tidy
122-
rev: 475bf5d96927a1887ce2863ff3075b1d7240bc51
122+
rev: 517cddbf1d8514ddaf43159686617ae65895dc99
123123
hooks:
124124
- id: tidy-gitignore
125125
- repo: local

tests/testthat/test-parsing.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ test_that("CRLF EOLs fail with informative error", {
2929

3030

3131
test_that("mixed CRLF / LF EOLs fail", {
32+
error_msg_stem <- if (getRversion() < "4.4") "unexpected input" else "unexpected invalid token"
3233
expect_error(
3334
style_text("a + 3 -4 -> x\nx + 2\r\n glück + 1"),
34-
"unexpected input"
35+
error_msg_stem
3536
)
3637
})
3738

0 commit comments

Comments
 (0)