diff --git a/testing/test_doctest.py b/testing/test_doctest.py index 8f31cb60643..d429e7fc58a 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -70,7 +70,7 @@ def my_func(): def test_collect_module_two_doctest_no_modulelevel(self, pytester: Pytester): path = pytester.makepyfile( - whatever=""" + __init__=""" '# Empty' def my_func(): ">>> magic = 42 "