From: Hadley Wickham <h.wickham@gmail.com>
Date: Thu, 2 Nov 2023 09:22:07 -0500
Subject: Drop mockr dep
Origin: upstream, https://github.com/tidyverse/tidyverse/commit/62f32d43e1e0650e4c05632dbfbe06977d1f292f

---
 DESCRIPTION                  | 5 ++---
 tests/testthat/test-attach.R | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 42cf245..a0c0232 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -25,9 +25,8 @@ Imports: broom (>= 1.0.3), conflicted (>= 1.2.0), cli (>= 3.6.0),
         1.4.2), reprex (>= 2.0.2), rlang (>= 1.0.6), rstudioapi (>=
         0.14), rvest (>= 1.0.3), stringr (>= 1.5.0), tibble (>= 3.1.8),
         tidyr (>= 1.3.0), xml2 (>= 1.3.3)
-Suggests: covr (>= 3.6.1), feather (>= 0.3.5), glue (>= 1.6.2), mockr
-        (>= 0.2.0), knitr (>= 1.41), rmarkdown (>= 2.20), testthat (>=
-        3.1.6)
+Suggests: covr (>= 3.6.1), feather (>= 0.3.5), glue (>= 1.6.2), knitr
+        (>= 1.41), rmarkdown (>= 2.20), testthat (>= 3.1.6)
 VignetteBuilder: knitr
 Config/Needs/website: tidyverse/tidytemplate
 Config/testthat/edition: 3
diff --git a/tests/testthat/test-attach.R b/tests/testthat/test-attach.R
index 11c30b4..ada93bd 100644
--- a/tests/testthat/test-attach.R
+++ b/tests/testthat/test-attach.R
@@ -3,7 +3,7 @@ test_that("if no packages, shows nothing", {
 })
 
 test_that("message lists all core tidyverse packages", {
-  mockr::local_mock(package_version_h = function(x) "1.0.0")
+  local_mocked_bindings(package_version_h = function(x) "1.0.0")
   expect_snapshot(cat(tidyverse_attach_message(core)))
 })
 
