Commit 1e38fc2
RFC: fail
* test.data.table: catch warnings outside test code
* Use explicit environment assignment instead of <<-
* Thinko: length -> nrow
* tests 2253*: suppressWarnings, skip if no UTF-8
* tests: remember tracebacks from warnings
* Thinko: length -> nrow
* suppressWarnings(Sys.setlocale(...))
On modern versions of R for Windows, Sys.setlocale() warns for non-UTF-8
locales.
Also comment the previous instance of suppressWarnings().
* Apply fixes from code review
* conditionMessage() instead of toString()
* apply names earlier
* don't check for zero-length calls in sys.calls()
* be careful not to over-translate an already-translated message
Co-Authored-By: Michael Chirico <[email protected]>
---------
Co-authored-by: Michael Chirico <[email protected]>test.data.table() if non-test code produces warnings (#7210)1 parent cfa9f49 commit 1e38fc2
2 files changed
+52
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
209 | 232 | | |
210 | 233 | | |
211 | 234 | | |
| |||
262 | 285 | | |
263 | 286 | | |
264 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
265 | 303 | | |
266 | 304 | | |
267 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16996 | 16996 | | |
16997 | 16997 | | |
16998 | 16998 | | |
16999 | | - | |
| 16999 | + | |
| 17000 | + | |
17000 | 17001 | | |
17001 | 17002 | | |
17002 | 17003 | | |
| |||
18615 | 18616 | | |
18616 | 18617 | | |
18617 | 18618 | | |
18618 | | - | |
| 18619 | + | |
18619 | 18620 | | |
| 18621 | + | |
18620 | 18622 | | |
18621 | 18623 | | |
18622 | | - | |
18623 | | - | |
| 18624 | + | |
| 18625 | + | |
| 18626 | + | |
| 18627 | + | |
| 18628 | + | |
| 18629 | + | |
| 18630 | + | |
18624 | 18631 | | |
18625 | 18632 | | |
18626 | 18633 | | |
| |||
18670 | 18677 | | |
18671 | 18678 | | |
18672 | 18679 | | |
| 18680 | + | |
| 18681 | + | |
18673 | 18682 | | |
18674 | 18683 | | |
18675 | 18684 | | |
| |||
0 commit comments