Skip to content

Commit

Permalink
Finish off #2046
Browse files Browse the repository at this point in the history
* Add news bullet
* Add explanatory comment
  • Loading branch information
hadley committed Jan 8, 2025
1 parent a3cb74d commit 690fdb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# testthat (development version)

* Fixed an issue where `expect_no_error(1)` was failing (#2037).

* Fixed an issue where calling `skip()` outside of an active test could
cause an unexpected error (@kevinushey, #2039).

Expand Down
2 changes: 2 additions & 0 deletions R/expect-no-condition.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ expect_no_ <- function(base_class,
try_fetch(
{
code
# We can't call succeed() here because that generates a condition
# that causes `expect_no_condition()` to always fail
NULL
},
!!base_class := function(cnd) {
Expand Down

0 comments on commit 690fdb8

Please sign in to comment.