File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ def _start_patch(
213
213
"Mocks returned by pytest-mock do not need to be used as context managers. "
214
214
"The mocker fixture automatically undoes mocking at the end of a test. "
215
215
"This warning can be ignored if it was triggered by mocking a context manager. "
216
- "https://github.com/ pytest-dev/pytest- mock#note-about- usage-as-context-manager" ,
216
+ "https://pytest-mock.readthedocs.io/en/latest/remarks.html# usage-as-context-manager" ,
217
217
PytestMockWarning ,
218
218
stacklevel = depth ,
219
219
)
Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ def doIt(self):
884
884
"Mocks returned by pytest-mock do not need to be used as context managers. "
885
885
"The mocker fixture automatically undoes mocking at the end of a test. "
886
886
"This warning can be ignored if it was triggered by mocking a context manager. "
887
- "https://github.com/ pytest-dev/pytest- mock#note-about- usage-as-context-manager"
887
+ "https://pytest-mock.readthedocs.io/en/latest/remarks.html# usage-as-context-manager"
888
888
)
889
889
890
890
with pytest .warns (
@@ -901,7 +901,7 @@ def test_warn_patch_context_manager(mocker: MockerFixture) -> None:
901
901
"Mocks returned by pytest-mock do not need to be used as context managers. "
902
902
"The mocker fixture automatically undoes mocking at the end of a test. "
903
903
"This warning can be ignored if it was triggered by mocking a context manager. "
904
- "https://github.com/ pytest-dev/pytest- mock#note-about- usage-as-context-manager"
904
+ "https://pytest-mock.readthedocs.io/en/latest/remarks.html# usage-as-context-manager"
905
905
)
906
906
907
907
with pytest .warns (
You can’t perform that action at this time.
0 commit comments