Skip to content

Commit 690fdb8

Browse files
committed
Finish off #2046
* Add news bullet * Add explanatory comment
1 parent a3cb74d commit 690fdb8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# testthat (development version)
22

3+
* Fixed an issue where `expect_no_error(1)` was failing (#2037).
4+
35
* Fixed an issue where calling `skip()` outside of an active test could
46
cause an unexpected error (@kevinushey, #2039).
57

R/expect-no-condition.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ expect_no_ <- function(base_class,
9898
try_fetch(
9999
{
100100
code
101+
# We can't call succeed() here because that generates a condition
102+
# that causes `expect_no_condition()` to always fail
101103
NULL
102104
},
103105
!!base_class := function(cnd) {

0 commit comments

Comments
 (0)