Elffuss BraidHub

kikocis/auto-code-rover public

main · 21.4 KiBRawPermalink
1{
2 "task_id": "pytest-dev__pytest-11143",
3 "setup_info": {
4 "repo_path": "/home/haifeng/projects/reverse-prompt/SWE-bench/testbed/pytest-dev__pytest/setup_pytest-dev__pytest__8.0",
5 "env_name": "setup_pytest-dev__pytest__8.0",
6 "pre_install": [],
7 "install": "python -m pip install -e .",
8 "test_cmd": "pytest -rA testing/test_assertrewrite.py"
9 },
10 "task_info": {
11 "instance_id": "pytest-dev__pytest-11143",
12 "base_commit": "6995257cf470d2143ad1683824962de4071c0eb7",
13 "hints_text": "more details are needed - based on the exception, the docstring is a integer, that seems completely wrong\nI run it pass lasttime in 2023-6-20 17:07:23. it run in docker and install newest pytest before run testcase everytime . maybe some commit cause it recently. \r\nI run it can pass in 7.2.0 a few minutes ago.\r\n\r\n`pytest ini`\r\n```\r\n[pytest]\r\nlog_cli = false\r\nlog_cli_level = debug\r\nlog_cli_format = %(asctime)s %(levelname)s %(message)s\r\nlog_cli_date_format = %Y-%m-%d %H:%M:%S\r\n\r\naddopts = -v -s\r\n\r\nfilterwarnings =\r\n ignore::UserWarning\r\n\r\nmarkers=\r\n case_id: mark test id to upload on tp\r\n case_level_bvt: testcase level bvt\r\n case_level_1: testcase level level 1\r\n case_level_2: testcase level level 2\r\n case_level_3: testcase level level 3\r\n case_status_pass: mark case as PASS\r\n case_status_fail: mark case as FAILED\r\n case_status_not_finish: mark case as CODEING\r\n case_status_not_run: mark case as FINISH\r\n case_not_run: mark case as DONT RUN\r\n run_env: mark run this case on which environment\r\n ```\r\n \r\n`testcase:`\r\n```\r\n@pytest.fixture(autouse=True)\r\ndef default_setup_teardown():\r\n xxxx\r\n\r\n@allure.feature(\"\u521d\u59cb\u72b6\u6001\")\r\nclass TestDefauleName:\r\n @allure.title(\"\u4e0a\u7ebf\u4e00\u4e2a\u57df\u7528\u6237\uff0c\u7528\u6237\u540d\u548c\u7ec4\u540d\u6b63\u786e\")\r\n @pytest.mark.case_level_1\r\n @pytest.mark.case_id(\"tc_proxyheard_insert_011\")\r\n def test_tc_proxyheard_insert_011(self):\r\n xxxx\r\n ```\nthanks for the update\r\n\r\ni took the liberty to edit your comments to use markdown code blocks for ease of reading\r\n\r\nfrom the given information the problem is still unclear\r\n\r\nplease try running with `--assert=plain` for verification\r\n\r\nthe error indicates that the python ast parser somehow ends up with a integer as the docstring for `test_socks_user_011.py` the reason is still unclear based on the redacted information\nI run with --assert=plain and it has passed\r\n\r\npython3 -m pytest -k helloworld --assert=plain\r\n```\r\ntestcases/smoke_testcase/test_helloworld.py::TestGuardProcess::test_hello_world 2023-06-25 08:54:17.659 | INFO | NAC_AIO.testcases.smoke_testcase.test_helloworld:test_hello_world:15 - Great! Frame Work is working\r\nPASSED\r\ntotal: 1648\r\npassed: 1\r\nfailed: 0\r\nerror: 0\r\npass_rate 100.00%\r\n\r\n================================================================================= 1 passed, 1647 deselected in 12.28s =================================================================================\r\n```\nIt seems to me that we have a potential bug in the ast transformer where's in case the first expression of a file is a integer, we mistake it as a docstring\n\nCan you verify the first expression in the file that fails?\nyou are right this file first expression is a 0 . It can pass after I delete it \r\nthank you!\nMinimal reproducer:\r\n\r\n```python\r\n0\r\n```\r\n\r\n(yes, just that, in a .py file)",
14 "created_at": "2023-06-26T06:44:43Z",
15 "test_patch": "diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py\n--- a/testing/test_assertrewrite.py\n+++ b/testing/test_assertrewrite.py\n@@ -2042,3 +2042,17 @@ def test_max_increased_verbosity(self, pytester: Pytester) -> None:\n self.create_test_file(pytester, DEFAULT_REPR_MAX_SIZE * 10)\n result = pytester.runpytest(\"-vv\")\n result.stdout.no_fnmatch_line(\"*xxx...xxx*\")\n+\n+\n+class TestIssue11140:\n+ def test_constant_not_picked_as_module_docstring(self, pytester: Pytester) -> None:\n+ pytester.makepyfile(\n+ \"\"\"\\\n+ 0\n+\n+ def test_foo():\n+ pass\n+ \"\"\"\n+ )\n+ result = pytester.runpytest()\n+ assert result.ret == 0\n",
16 "repo": "pytest-dev/pytest",
17 "problem_statement": "Rewrite fails when first expression of file is a number and mistaken as docstring \n<!--\r\nThanks for submitting an issue!\r\n\r\nQuick check-list while reporting bugs:\r\n-->\r\n\r\n- [x] a detailed description of the bug or problem you are having\r\n- [x] output of `pip list` from the virtual environment you are using\r\n- [x] pytest and operating system versions\r\n- [x] minimal example if possible\r\n```\r\nInstalling collected packages: zipp, six, PyYAML, python-dateutil, MarkupSafe, importlib-metadata, watchdog, tomli, soupsieve, pyyaml-env-tag, pycparser, pluggy, packaging, mergedeep, Markdown, jinja2, iniconfig, ghp-import, exceptiongroup, click, websockets, urllib3, tqdm, smmap, pytest, pyee, mkdocs, lxml, importlib-resources, idna, cssselect, charset-normalizer, cffi, certifi, beautifulsoup4, attrs, appdirs, w3lib, typing-extensions, texttable, requests, pyzstd, pytest-metadata, pyquery, pyppmd, pyppeteer, pynacl, pymdown-extensions, pycryptodomex, pybcj, pyasn1, py, psutil, parse, multivolumefile, mkdocs-autorefs, inflate64, gitdb, fake-useragent, cryptography, comtypes, bs4, brotli, bcrypt, allure-python-commons, xlwt, xlrd, rsa, requests-html, pywinauto, python-i18n, python-dotenv, pytest-rerunfailures, pytest-html, pytest-check, PySocks, py7zr, paramiko, mkdocstrings, loguru, GitPython, ftputil, crcmod, chardet, brotlicffi, allure-pytest\r\nSuccessfully installed GitPython-3.1.31 Markdown-3.3.7 MarkupSafe-2.1.3 PySocks-1.7.1 PyYAML-6.0 allure-pytest-2.13.2 allure-python-commons-2.13.2 appdirs-1.4.4 attrs-23.1.0 bcrypt-4.0.1 beautifulsoup4-4.12.2 brotli-1.0.9 brotlicffi-1.0.9.2 bs4-0.0.1 certifi-2023.5.7 cffi-1.15.1 chardet-5.1.0 charset-normalizer-3.1.0 click-8.1.3 comtypes-1.2.0 crcmod-1.7 cryptography-41.0.1 cssselect-1.2.0 exceptiongroup-1.1.1 fake-useragent-1.1.3 ftputil-5.0.4 ghp-import-2.1.0 gitdb-4.0.10 idna-3.4 importlib-metadata-6.7.0 importlib-resources-5.12.0 inflate64-0.3.1 iniconfig-2.0.0 jinja2-3.1.2 loguru-0.7.0 lxml-4.9.2 mergedeep-1.3.4 mkdocs-1.4.3 mkdocs-autorefs-0.4.1 mkdocstrings-0.22.0 multivolumefile-0.2.3 packaging-23.1 paramiko-3.2.0 parse-1.19.1 pluggy-1.2.0 psutil-5.9.5 py-1.11.0 py7zr-0.20.5 pyasn1-0.5.0 pybcj-1.0.1 pycparser-2.21 pycryptodomex-3.18.0 pyee-8.2.2 pymdown-extensions-10.0.1 pynacl-1.5.0 pyppeteer-1.0.2 pyppmd-1.0.0 pyquery-2.0.0 pytest-7.4.0 pytest-check-2.1.5 pytest-html-3.2.0 pytest-metadata-3.0.0 pytest-rerunfailures-11.1.2 python-dateutil-2.8.2 python-dotenv-1.0.0 python-i18n-0.3.9 pywinauto-0.6.6 pyyaml-env-tag-0.1 pyzstd-0.15.9 requests-2.31.0 requests-html-0.10.0 rsa-4.9 six-1.16.0 smmap-5.0.0 soupsieve-2.4.1 texttable-1.6.7 tomli-2.0.1 tqdm-4.65.0 typing-extensions-4.6.3 urllib3-1.26.16 w3lib-2.1.1 watchdog-3.0.0 websockets-10.4 xlrd-2.0.1 xlwt-1.3.0 zipp-3.15.0\r\n```\r\nuse `pytest -k xxx`\uff0c report an error\uff1a`TypeError: argument of type 'int' is not iterable`\r\n\r\nit seems a error in collecting testcase\r\n```\r\n==================================== ERRORS ====================================\r\n_ ERROR collecting testcases/\u57fa\u7ebf/\u4ee3\u7406\u7b56\u7565/SOCKS\u4e8c\u7ea7\u4ee3\u7406\u8fed\u4ee3\u4e8c/\u5728\u7ebf\u7528\u6237/\u5728\u7ebf\u7528\u6237\u66f4\u65b0/\u4e0a\u7ebf\u7528\u6237/test_socks_user_011.py _\r\n/usr/local/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call\r\n result: Optional[TResult] = func()\r\n/usr/local/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>\r\n call = CallInfo.from_call(lambda: list(collector.collect()), \"collect\")\r\n/usr/local/lib/python3.8/site-packages/_pytest/python.py:531: in collect\r\n self._inject_setup_module_fixture()\r\n/usr/local/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture\r\n self.obj, (\"setUpModule\", \"setup_module\")\r\n/usr/local/lib/python3.8/site-packages/_pytest/python.py:310: in obj\r\n self._obj = obj = self._getobj()\r\n/usr/local/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj\r\n return self._importtestmodule()\r\n/usr/local/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule\r\n mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\r\n/usr/local/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path\r\n importlib.import_module(module_name)\r\n/usr/local/lib/python3.8/importlib/__init__.py:127: in import_module\r\n return _bootstrap._gcd_import(name[level:], package, level)\r\n<frozen importlib._bootstrap>:1014: in _gcd_import\r\n ???\r\n<frozen importlib._bootstrap>:991: in _find_and_load\r\n ???\r\n<frozen importlib._bootstrap>:975: in _find_and_load_unlocked\r\n ???\r\n<frozen importlib._bootstrap>:671: in _load_unlocked\r\n ???\r\n/usr/local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:169: in exec_module\r\n source_stat, co = _rewrite_test(fn, self.config)\r\n/usr/local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:352: in _rewrite_test\r\n rewrite_asserts(tree, source, strfn, config)\r\n/usr/local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:413: in rewrite_asserts\r\n AssertionRewriter(module_path, config, source).run(mod)\r\n/usr/local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:695: in run\r\n if self.is_rewrite_disabled(doc):\r\n/usr/local/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:760: in is_rewrite_disabled\r\n return \"PYTEST_DONT_REWRITE\" in docstring\r\nE TypeError: argument of type 'int' is not iterable\r\n```\n",
18 "version": "8.0",
19 "FAIL_TO_PASS": [
20 "testing/test_assertrewrite.py::TestIssue11140::test_constant_not_picked_as_module_docstring"
21 ],
22 "PASS_TO_PASS": [
23 "testing/test_assertrewrite.py::TestAssertionPass::test_hook_call",
24 "testing/test_assertrewrite.py::TestAssertionPass::test_hook_call_with_parens",
25 "testing/test_assertrewrite.py::TestAssertionPass::test_hook_not_called_without_cmd_option",
26 "testing/test_assertrewrite.py::TestAssertionPass::test_hook_not_called_without_hookimpl",
27 "testing/test_assertrewrite.py::TestAssertionPass::test_option_default",
28 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assert_already_has_message",
29 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assert_raising__bool__in_comparison",
30 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message",
31 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_escape",
32 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_expr",
33 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_multiline",
34 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_tuple",
35 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_messages_bytes",
36 "testing/test_assertrewrite.py::TestAssertionRewrite::test_assertrepr_compare_same_width",
37 "testing/test_assertrewrite.py::TestAssertionRewrite::test_at_operator_issue1290",
38 "testing/test_assertrewrite.py::TestAssertionRewrite::test_attribute",
39 "testing/test_assertrewrite.py::TestAssertionRewrite::test_binary_op",
40 "testing/test_assertrewrite.py::TestAssertionRewrite::test_boolop",
41 "testing/test_assertrewrite.py::TestAssertionRewrite::test_boolop_percent",
42 "testing/test_assertrewrite.py::TestAssertionRewrite::test_call",
43 "testing/test_assertrewrite.py::TestAssertionRewrite::test_comparisons",
44 "testing/test_assertrewrite.py::TestAssertionRewrite::test_custom_repr",
45 "testing/test_assertrewrite.py::TestAssertionRewrite::test_custom_repr_non_ascii",
46 "testing/test_assertrewrite.py::TestAssertionRewrite::test_custom_reprcompare",
47 "testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite",
48 "testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite_if_hasattr_fails",
49 "testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite_plugin",
50 "testing/test_assertrewrite.py::TestAssertionRewrite::test_formatchar",
51 "testing/test_assertrewrite.py::TestAssertionRewrite::test_honors_pep_235",
52 "testing/test_assertrewrite.py::TestAssertionRewrite::test_len",
53 "testing/test_assertrewrite.py::TestAssertionRewrite::test_location_is_set",
54 "testing/test_assertrewrite.py::TestAssertionRewrite::test_name",
55 "testing/test_assertrewrite.py::TestAssertionRewrite::test_place_initial_imports",
56 "testing/test_assertrewrite.py::TestAssertionRewrite::test_rewrites_plugin_as_a_package",
57 "testing/test_assertrewrite.py::TestAssertionRewrite::test_short_circuit_evaluation",
58 "testing/test_assertrewrite.py::TestAssertionRewrite::test_starred_with_side_effect",
59 "testing/test_assertrewrite.py::TestAssertionRewrite::test_unary_op",
60 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_get_data_support",
61 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_read_pyc",
62 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_read_pyc_more_invalid",
63 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_read_pyc_success",
64 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_reload_is_same_and_reloads",
65 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_resources_provider_for_loader",
66 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_sys_meta_path_munged",
67 "testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_write_pyc",
68 "testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_basic",
69 "testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_cwd_changed",
70 "testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_pattern_contains_subdirectories",
71 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_inline_walrus_operator",
72 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_inline_walrus_operator_reverse",
73 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_no_variable_name_conflict",
74 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator",
75 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_boolean_composite",
76 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_boolean_none_fails",
77 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_compare_boolean_fails",
78 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_dont_rewrite",
79 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_fail_assertion",
80 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_true_assertion_and_changes_variable_value",
81 "testing/test_assertrewrite.py::TestIssue10743::test_assertion_walrus_operator_value_changes_cleared_after_each_test",
82 "testing/test_assertrewrite.py::TestIssue11028::test_assertion_walrus_operator_equals_operand_function",
83 "testing/test_assertrewrite.py::TestIssue11028::test_assertion_walrus_operator_equals_operand_function_arg_as_function",
84 "testing/test_assertrewrite.py::TestIssue11028::test_assertion_walrus_operator_equals_operand_function_keyword_arg",
85 "testing/test_assertrewrite.py::TestIssue11028::test_assertion_walrus_operator_gt_operand_function",
86 "testing/test_assertrewrite.py::TestIssue11028::test_assertion_walrus_operator_in_operand",
87 "testing/test_assertrewrite.py::TestIssue11028::test_assertion_walrus_operator_in_operand_json_dumps",
88 "testing/test_assertrewrite.py::TestIssue2121::test_rewrite_python_files_contain_subdirs",
89 "testing/test_assertrewrite.py::TestIssue925::test_long_case",
90 "testing/test_assertrewrite.py::TestIssue925::test_many_brackets",
91 "testing/test_assertrewrite.py::TestIssue925::test_simple_case",
92 "testing/test_assertrewrite.py::TestPyCacheDir::test_get_cache_dir[/tmp/pycs-/home/projects/src/foo.py-/tmp/pycs/home/projects/src]",
93 "testing/test_assertrewrite.py::TestPyCacheDir::test_get_cache_dir[None-/home/projects/src/foo.py-/home/projects/src/__pycache__]",
94 "testing/test_assertrewrite.py::TestPyCacheDir::test_get_cache_dir[None-d:/projects/src/foo.py-d:/projects/src/__pycache__]",
95 "testing/test_assertrewrite.py::TestPyCacheDir::test_get_cache_dir[c:/tmp/pycs-d:/projects/src/foo.py-c:/tmp/pycs/projects/src]",
96 "testing/test_assertrewrite.py::TestPyCacheDir::test_sys_pycache_prefix_integration",
97 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_default_verbosity",
98 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_get_maxsize_for_saferepr[0-240]",
99 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_get_maxsize_for_saferepr[1-2400]",
100 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_get_maxsize_for_saferepr[2-None]",
101 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_get_maxsize_for_saferepr[3-None]",
102 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_increased_verbosity",
103 "testing/test_assertrewrite.py::TestReprSizeVerbosity::test_max_increased_verbosity",
104 "testing/test_assertrewrite.py::TestRewriteOnImport::test_cached_pyc_includes_pytest_version",
105 "testing/test_assertrewrite.py::TestRewriteOnImport::test_dont_write_bytecode",
106 "testing/test_assertrewrite.py::TestRewriteOnImport::test_load_resource_via_files_with_rewrite",
107 "testing/test_assertrewrite.py::TestRewriteOnImport::test_orphaned_pyc_file",
108 "testing/test_assertrewrite.py::TestRewriteOnImport::test_package",
109 "testing/test_assertrewrite.py::TestRewriteOnImport::test_package_without__init__py",
110 "testing/test_assertrewrite.py::TestRewriteOnImport::test_pyc_vs_pyo",
111 "testing/test_assertrewrite.py::TestRewriteOnImport::test_pycache_is_a_file",
112 "testing/test_assertrewrite.py::TestRewriteOnImport::test_pycache_is_readonly",
113 "testing/test_assertrewrite.py::TestRewriteOnImport::test_readonly",
114 "testing/test_assertrewrite.py::TestRewriteOnImport::test_remember_rewritten_modules",
115 "testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_module_imported_from_conftest",
116 "testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning",
117 "testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning_using_pytest_plugins",
118 "testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning_using_pytest_plugins_env_var",
119 "testing/test_assertrewrite.py::TestRewriteOnImport::test_translate_newlines",
120 "testing/test_assertrewrite.py::TestRewriteOnImport::test_zipfile",
121 "testing/test_assertrewrite.py::test_get_assertion_exprs[assert",
122 "testing/test_assertrewrite.py::test_get_assertion_exprs[assertion",
123 "testing/test_assertrewrite.py::test_get_assertion_exprs[backslash",
124 "testing/test_assertrewrite.py::test_get_assertion_exprs[escaped",
125 "testing/test_assertrewrite.py::test_get_assertion_exprs[latin1",
126 "testing/test_assertrewrite.py::test_get_assertion_exprs[multi",
127 "testing/test_assertrewrite.py::test_get_assertion_exprs[multi-line",
128 "testing/test_assertrewrite.py::test_get_assertion_exprs[multiple",
129 "testing/test_assertrewrite.py::test_get_assertion_exprs[no",
130 "testing/test_assertrewrite.py::test_get_assertion_exprs[trivial]",
131 "testing/test_assertrewrite.py::test_get_assertion_exprs[utf-8",
132 "testing/test_assertrewrite.py::test_issue731",
133 "testing/test_assertrewrite.py::test_rewrite_infinite_recursion",
134 "testing/test_assertrewrite.py::test_source_mtime_long_long[-1]",
135 "testing/test_assertrewrite.py::test_source_mtime_long_long[1]",
136 "testing/test_assertrewrite.py::test_try_makedirs"
137 ],
138 "environment_setup_commit": "10056865d2a4784934ce043908a0e78d0578f677",
139 "patch": "diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py\n--- a/src/_pytest/assertion/rewrite.py\n+++ b/src/_pytest/assertion/rewrite.py\n@@ -676,6 +676,7 @@ def run(self, mod: ast.Module) -> None:\n expect_docstring\n and isinstance(item, ast.Expr)\n and isinstance(item.value, ast.Constant)\n+ and isinstance(item.value.value, str)\n ):\n doc = item.value.value\n if self.is_rewrite_disabled(doc):\n",
140 "pr_link": "https://github.com/pytest-dev/pytest/pull/11143"
141 }
142}