Commit ca30752
tests: avoid invalid UTF-8 warning (#7209)
* tests: avoid invalid UTF-8 warning
Under options(encoding="UTF-8"), writeLines() always tries to perform
text conversion. Giving it bytes that aren't valid in the current
encoding results in warnings. Avoid the warning by explicitly opening a
file connection with encoding="" (no conversion).
* local()ize the test, link to the PR
Co-authored-by: Michael Chirico <[email protected]>1 parent 294f7f2 commit ca30752
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21554 | 21554 | | |
21555 | 21555 | | |
21556 | 21556 | | |
21557 | | - | |
21558 | | - | |
21559 | | - | |
21560 | | - | |
| 21557 | + | |
| 21558 | + | |
| 21559 | + | |
| 21560 | + | |
| 21561 | + | |
| 21562 | + | |
| 21563 | + | |
| 21564 | + | |
| 21565 | + | |
| 21566 | + | |
| 21567 | + | |
| 21568 | + | |
21561 | 21569 | | |
21562 | 21570 | | |
21563 | 21571 | | |
| |||
0 commit comments