We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
tests_require: add trustme
It is required since https://github.com/aio-libs/aiohttp/pull/3487.

<!-- Thank you for your contribution! -->

## What do these changes do?

<!-- Please give a short brief about these changes. -->

## Are there changes in behavior for the user?

<!-- Outline any notable behaviour for the end users. -->

## Related issue number

<!-- Are there any issues opened that will be resolved by merging this change? -->

## Checklist

- [ ] I think the code is well written
- [ ] Unit tests for the changes exist
- [ ] Documentation reflects the changes
- [ ] If you provide code modification, please add yourself to `CONTRIBUTORS.txt`
  * The format is &lt;Name&gt; &lt;Surname&gt;.
  * Please keep alphabetical order, the file is sorted by names. 
- [ ] Add a new news fragment into the `CHANGES` folder
  * name it `<issue_id>.<type>` for example (588.bugfix)
  * if you don't have an `issue_id` change it to the pr id after creating the pr
  * ensure type is one of the following:
    * `.feature`: Signifying a new feature.
    * `.bugfix`: Signifying a bug fix.
    * `.doc`: Signifying a documentation improvement.
    * `.removal`: Signifying a deprecation or removal of public API.
    * `.misc`: A ticket has been closed, but it is not of interest to users.
  * Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 import pathlib
2 import re
3 import sys
4 from distutils.command.build_ext import build_ext
5 from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
6 
7 from setuptools import Extension, setup
8 
9 if sys.version_info < (3, 6):
10     raise RuntimeError("aiohttp 3.7+ requires Python 3.6+")
11 
12 here = pathlib.Path(__file__).parent
13 
14 if (here / ".git").exists() and not (here / "vendor/http-parser/README.md").exists():
15     print("Install submodules when building from git clone", file=sys.stderr)
16     print("Hint:", file=sys.stderr)
17     print("  git submodule update --init", file=sys.stderr)
18     sys.exit(2)
19 
20 
21 # NOTE: makefile cythonizes all Cython modules
22 
23 extensions = [
24     Extension("aiohttp._websocket", ["aiohttp/_websocket.c"]),
25     Extension(
26         "aiohttp._http_parser",
27         [
28             "aiohttp/_http_parser.c",
29             "vendor/http-parser/http_parser.c",
30             "aiohttp/_find_header.c",
31         ],
32         define_macros=[("HTTP_PARSER_STRICT", 0)],
33     ),
34     Extension("aiohttp._helpers", ["aiohttp/_helpers.c"]),
35     Extension("aiohttp._http_writer", ["aiohttp/_http_writer.c"]),
36 ]
37 
38 
39 class BuildFailed(Exception):
40     pass
41 
42 
43 class ve_build_ext(build_ext):
44     # This class allows C extension building to fail.
45 
46     def run(self):
47         try:
48             build_ext.run(self)
49         except (DistutilsPlatformError, FileNotFoundError):
50             raise BuildFailed()
51 
52     def build_extension(self, ext):
53         try:
54             build_ext.build_extension(self, ext)
55         except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError):
56             raise BuildFailed()
57 
58 
59 txt = (here / "aiohttp" / "__init__.py").read_text("utf-8")
60 try:
61     version = re.findall(r'^__version__ = "([^"]+)"\r?$', txt, re.M)[0]
62 except IndexError:
63     raise RuntimeError("Unable to determine version.")
64 
65 install_requires = [
66     "attrs>=17.3.0",
67     "charset-normalizer>=2.0,<3.0",
68     "multidict>=4.5,<7.0",
69     "async_timeout>=4.0.0a3,<5.0",
70     'asynctest==0.13.0; python_version<"3.8"',
71     "yarl>=1.0,<2.0",
72     'idna-ssl>=1.0; python_version<"3.7"',
73     'typing_extensions>=3.7.4; python_version<"3.8"',
74     "frozenlist>=1.1.1",
75     "aiosignal>=1.1.2",
76 ]
77 
78 
79 def read(f):
80     return (here / f).read_text("utf-8").strip()
81 
82 
83 NEEDS_PYTEST = {"pytest", "test"}.intersection(sys.argv)
84 pytest_runner = ["pytest-runner"] if NEEDS_PYTEST else []
85 
86 tests_require = [
87     "pytest",
88     "gunicorn",
89     "pytest-timeout",
90     "async-generator",
91     "pytest-xdist",
92 ]
93 
94 
95 args = dict(
96     name="aiohttp",
97     version=version,
98     description="Async http client/server framework (asyncio)",
99     long_description=read("README.rst"),
100     long_description_content_type="text/x-rst",
101     classifiers=[
102         "License :: OSI Approved :: Apache Software License",
103         "Intended Audience :: Developers",
104         "Programming Language :: Python",
105         "Programming Language :: Python :: 3",
106         "Programming Language :: Python :: 3.6",
107         "Programming Language :: Python :: 3.7",
108         "Programming Language :: Python :: 3.8",
109         "Programming Language :: Python :: 3.9",
110         "Programming Language :: Python :: 3.10",
111         "Development Status :: 5 - Production/Stable",
112         "Operating System :: POSIX",
113         "Operating System :: MacOS :: MacOS X",
114         "Operating System :: Microsoft :: Windows",
115         "Topic :: Internet :: WWW/HTTP",
116         "Framework :: AsyncIO",
117     ],
118     author="Nikolay Kim",
119     author_email="fafhrd91@gmail.com",
120     maintainer=", ".join(
121         (
122             "Nikolay Kim <fafhrd91@gmail.com>",
123             "Andrew Svetlov <andrew.svetlov@gmail.com>",
124         )
125     ),
126     maintainer_email="aio-libs@googlegroups.com",
127     url="https://github.com/aio-libs/aiohttp",
128     project_urls={
129         "Chat: Gitter": "https://gitter.im/aio-libs/Lobby",
130         "CI: GitHub Actions": "https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI",  # noqa
131         "Coverage: codecov": "https://codecov.io/github/aio-libs/aiohttp",
132         "Docs: RTD": "https://docs.aiohttp.org",
133         "GitHub: issues": "https://github.com/aio-libs/aiohttp/issues",
134         "GitHub: repo": "https://github.com/aio-libs/aiohttp",
135     },
136     license="Apache 2",
137     packages=["aiohttp"],
138     python_requires=">=3.6",
139     install_requires=install_requires,
140     extras_require={
141         "speedups": [
142             "aiodns",
143             "Brotli",
144             "cchardet",
145         ],
146     },
147     tests_require=tests_require,
148     setup_requires=pytest_runner,
149     include_package_data=True,
150     ext_modules=extensions,
151     cmdclass=dict(build_ext=ve_build_ext),
152 )
153 
154 try:
155     setup(**args)
156 except BuildFailed:
157     print("************************************************************")
158     print("Cannot compile C accelerator module, use pure python version")
159     print("************************************************************")
160     del args["ext_modules"]
161     del args["cmdclass"]
162     setup(**args)
163
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -80,18 +80,6 @@
     return (here / f).read_text("utf-8").strip()
 
 
-NEEDS_PYTEST = {"pytest", "test"}.intersection(sys.argv)
-pytest_runner = ["pytest-runner"] if NEEDS_PYTEST else []
-
-tests_require = [
-    "pytest",
-    "gunicorn",
-    "pytest-timeout",
-    "async-generator",
-    "pytest-xdist",
-]
-
-
 args = dict(
     name="aiohttp",
     version=version,
@@ -144,8 +132,6 @@
             "cchardet",
         ],
     },
-    tests_require=tests_require,
-    setup_requires=pytest_runner,
     include_package_data=True,
     ext_modules=extensions,
     cmdclass=dict(build_ext=ve_build_ext),

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -80,18 +80,6 @@\n     return (here / f).read_text(\"utf-8\").strip()\n \n \n-NEEDS_PYTEST = {\"pytest\", \"test\"}.intersection(sys.argv)\n-pytest_runner = [\"pytest-runner\"] if NEEDS_PYTEST else []\n-\n-tests_require = [\n-    \"pytest\",\n-    \"gunicorn\",\n-    \"pytest-timeout\",\n-    \"async-generator\",\n-    \"pytest-xdist\",\n-]\n-\n-\n args = dict(\n     name=\"aiohttp\",\n     version=version,\n@@ -144,8 +132,6 @@\n             \"cchardet\",\n         ],\n     },\n-    tests_require=tests_require,\n-    setup_requires=pytest_runner,\n     include_package_data=True,\n     ext_modules=extensions,\n     cmdclass=dict(build_ext=ve_build_ext),\n", "issue": "tests_require: add trustme\nIt is required since https://github.com/aio-libs/aiohttp/pull/3487.\r\n\r\n<!-- Thank you for your contribution! -->\r\n\r\n## What do these changes do?\r\n\r\n<!-- Please give a short brief about these changes. -->\r\n\r\n## Are there changes in behavior for the user?\r\n\r\n<!-- Outline any notable behaviour for the end users. -->\r\n\r\n## Related issue number\r\n\r\n<!-- Are there any issues opened that will be resolved by merging this change? -->\r\n\r\n## Checklist\r\n\r\n- [ ] I think the code is well written\r\n- [ ] Unit tests for the changes exist\r\n- [ ] Documentation reflects the changes\r\n- [ ] If you provide code modification, please add yourself to `CONTRIBUTORS.txt`\r\n  * The format is &lt;Name&gt; &lt;Surname&gt;.\r\n  * Please keep alphabetical order, the file is sorted by names. \r\n- [ ] Add a new news fragment into the `CHANGES` folder\r\n  * name it `<issue_id>.<type>` for example (588.bugfix)\r\n  * if you don't have an `issue_id` change it to the pr id after creating the pr\r\n  * ensure type is one of the following:\r\n    * `.feature`: Signifying a new feature.\r\n    * `.bugfix`: Signifying a bug fix.\r\n    * `.doc`: Signifying a documentation improvement.\r\n    * `.removal`: Signifying a deprecation or removal of public API.\r\n    * `.misc`: A ticket has been closed, but it is not of interest to users.\r\n  * Make sure to use full sentences with correct case and punctuation, for example: \"Fix issue with non-ascii contents in doctest text files.\"\r\n\n", "before_files": [{"content": "import pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError\n\nfrom setuptools import Extension, setup\n\nif sys.version_info < (3, 6):\n    raise RuntimeError(\"aiohttp 3.7+ requires Python 3.6+\")\n\nhere = pathlib.Path(__file__).parent\n\nif (here / \".git\").exists() and not (here / \"vendor/http-parser/README.md\").exists():\n    print(\"Install submodules when building from git clone\", file=sys.stderr)\n    print(\"Hint:\", file=sys.stderr)\n    print(\"  git submodule update --init\", file=sys.stderr)\n    sys.exit(2)\n\n\n# NOTE: makefile cythonizes all Cython modules\n\nextensions = [\n    Extension(\"aiohttp._websocket\", [\"aiohttp/_websocket.c\"]),\n    Extension(\n        \"aiohttp._http_parser\",\n        [\n            \"aiohttp/_http_parser.c\",\n            \"vendor/http-parser/http_parser.c\",\n            \"aiohttp/_find_header.c\",\n        ],\n        define_macros=[(\"HTTP_PARSER_STRICT\", 0)],\n    ),\n    Extension(\"aiohttp._helpers\", [\"aiohttp/_helpers.c\"]),\n    Extension(\"aiohttp._http_writer\", [\"aiohttp/_http_writer.c\"]),\n]\n\n\nclass BuildFailed(Exception):\n    pass\n\n\nclass ve_build_ext(build_ext):\n    # This class allows C extension building to fail.\n\n    def run(self):\n        try:\n            build_ext.run(self)\n        except (DistutilsPlatformError, FileNotFoundError):\n            raise BuildFailed()\n\n    def build_extension(self, ext):\n        try:\n            build_ext.build_extension(self, ext)\n        except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError):\n            raise BuildFailed()\n\n\ntxt = (here / \"aiohttp\" / \"__init__.py\").read_text(\"utf-8\")\ntry:\n    version = re.findall(r'^__version__ = \"([^\"]+)\"\\r?$', txt, re.M)[0]\nexcept IndexError:\n    raise RuntimeError(\"Unable to determine version.\")\n\ninstall_requires = [\n    \"attrs>=17.3.0\",\n    \"charset-normalizer>=2.0,<3.0\",\n    \"multidict>=4.5,<7.0\",\n    \"async_timeout>=4.0.0a3,<5.0\",\n    'asynctest==0.13.0; python_version<\"3.8\"',\n    \"yarl>=1.0,<2.0\",\n    'idna-ssl>=1.0; python_version<\"3.7\"',\n    'typing_extensions>=3.7.4; python_version<\"3.8\"',\n    \"frozenlist>=1.1.1\",\n    \"aiosignal>=1.1.2\",\n]\n\n\ndef read(f):\n    return (here / f).read_text(\"utf-8\").strip()\n\n\nNEEDS_PYTEST = {\"pytest\", \"test\"}.intersection(sys.argv)\npytest_runner = [\"pytest-runner\"] if NEEDS_PYTEST else []\n\ntests_require = [\n    \"pytest\",\n    \"gunicorn\",\n    \"pytest-timeout\",\n    \"async-generator\",\n    \"pytest-xdist\",\n]\n\n\nargs = dict(\n    name=\"aiohttp\",\n    version=version,\n    description=\"Async http client/server framework (asyncio)\",\n    long_description=read(\"README.rst\"),\n    long_description_content_type=\"text/x-rst\",\n    classifiers=[\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Intended Audience :: Developers\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Topic :: Internet :: WWW/HTTP\",\n        \"Framework :: AsyncIO\",\n    ],\n    author=\"Nikolay Kim\",\n    author_email=\"fafhrd91@gmail.com\",\n    maintainer=\", \".join(\n        (\n            \"Nikolay Kim <fafhrd91@gmail.com>\",\n            \"Andrew Svetlov <andrew.svetlov@gmail.com>\",\n        )\n    ),\n    maintainer_email=\"aio-libs@googlegroups.com\",\n    url=\"https://github.com/aio-libs/aiohttp\",\n    project_urls={\n        \"Chat: Gitter\": \"https://gitter.im/aio-libs/Lobby\",\n        \"CI: GitHub Actions\": \"https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI\",  # noqa\n        \"Coverage: codecov\": \"https://codecov.io/github/aio-libs/aiohttp\",\n        \"Docs: RTD\": \"https://docs.aiohttp.org\",\n        \"GitHub: issues\": \"https://github.com/aio-libs/aiohttp/issues\",\n        \"GitHub: repo\": \"https://github.com/aio-libs/aiohttp\",\n    },\n    license=\"Apache 2\",\n    packages=[\"aiohttp\"],\n    python_requires=\">=3.6\",\n    install_requires=install_requires,\n    extras_require={\n        \"speedups\": [\n            \"aiodns\",\n            \"Brotli\",\n            \"cchardet\",\n        ],\n    },\n    tests_require=tests_require,\n    setup_requires=pytest_runner,\n    include_package_data=True,\n    ext_modules=extensions,\n    cmdclass=dict(build_ext=ve_build_ext),\n)\n\ntry:\n    setup(**args)\nexcept BuildFailed:\n    print(\"************************************************************\")\n    print(\"Cannot compile C accelerator module, use pure python version\")\n    print(\"************************************************************\")\n    del args[\"ext_modules\"]\n    del args[\"cmdclass\"]\n    setup(**args)\n", "path": "setup.py"}], "after_files": [{"content": "import pathlib\nimport re\nimport sys\nfrom distutils.command.build_ext import build_ext\nfrom distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError\n\nfrom setuptools import Extension, setup\n\nif sys.version_info < (3, 6):\n    raise RuntimeError(\"aiohttp 3.7+ requires Python 3.6+\")\n\nhere = pathlib.Path(__file__).parent\n\nif (here / \".git\").exists() and not (here / \"vendor/http-parser/README.md\").exists():\n    print(\"Install submodules when building from git clone\", file=sys.stderr)\n    print(\"Hint:\", file=sys.stderr)\n    print(\"  git submodule update --init\", file=sys.stderr)\n    sys.exit(2)\n\n\n# NOTE: makefile cythonizes all Cython modules\n\nextensions = [\n    Extension(\"aiohttp._websocket\", [\"aiohttp/_websocket.c\"]),\n    Extension(\n        \"aiohttp._http_parser\",\n        [\n            \"aiohttp/_http_parser.c\",\n            \"vendor/http-parser/http_parser.c\",\n            \"aiohttp/_find_header.c\",\n        ],\n        define_macros=[(\"HTTP_PARSER_STRICT\", 0)],\n    ),\n    Extension(\"aiohttp._helpers\", [\"aiohttp/_helpers.c\"]),\n    Extension(\"aiohttp._http_writer\", [\"aiohttp/_http_writer.c\"]),\n]\n\n\nclass BuildFailed(Exception):\n    pass\n\n\nclass ve_build_ext(build_ext):\n    # This class allows C extension building to fail.\n\n    def run(self):\n        try:\n            build_ext.run(self)\n        except (DistutilsPlatformError, FileNotFoundError):\n            raise BuildFailed()\n\n    def build_extension(self, ext):\n        try:\n            build_ext.build_extension(self, ext)\n        except (CCompilerError, DistutilsExecError, DistutilsPlatformError, ValueError):\n            raise BuildFailed()\n\n\ntxt = (here / \"aiohttp\" / \"__init__.py\").read_text(\"utf-8\")\ntry:\n    version = re.findall(r'^__version__ = \"([^\"]+)\"\\r?$', txt, re.M)[0]\nexcept IndexError:\n    raise RuntimeError(\"Unable to determine version.\")\n\ninstall_requires = [\n    \"attrs>=17.3.0\",\n    \"charset-normalizer>=2.0,<3.0\",\n    \"multidict>=4.5,<7.0\",\n    \"async_timeout>=4.0.0a3,<5.0\",\n    'asynctest==0.13.0; python_version<\"3.8\"',\n    \"yarl>=1.0,<2.0\",\n    'idna-ssl>=1.0; python_version<\"3.7\"',\n    'typing_extensions>=3.7.4; python_version<\"3.8\"',\n    \"frozenlist>=1.1.1\",\n    \"aiosignal>=1.1.2\",\n]\n\n\ndef read(f):\n    return (here / f).read_text(\"utf-8\").strip()\n\n\nargs = dict(\n    name=\"aiohttp\",\n    version=version,\n    description=\"Async http client/server framework (asyncio)\",\n    long_description=read(\"README.rst\"),\n    long_description_content_type=\"text/x-rst\",\n    classifiers=[\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Intended Audience :: Developers\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Topic :: Internet :: WWW/HTTP\",\n        \"Framework :: AsyncIO\",\n    ],\n    author=\"Nikolay Kim\",\n    author_email=\"fafhrd91@gmail.com\",\n    maintainer=\", \".join(\n        (\n            \"Nikolay Kim <fafhrd91@gmail.com>\",\n            \"Andrew Svetlov <andrew.svetlov@gmail.com>\",\n        )\n    ),\n    maintainer_email=\"aio-libs@googlegroups.com\",\n    url=\"https://github.com/aio-libs/aiohttp\",\n    project_urls={\n        \"Chat: Gitter\": \"https://gitter.im/aio-libs/Lobby\",\n        \"CI: GitHub Actions\": \"https://github.com/aio-libs/aiohttp/actions?query=workflow%3ACI\",  # noqa\n        \"Coverage: codecov\": \"https://codecov.io/github/aio-libs/aiohttp\",\n        \"Docs: RTD\": \"https://docs.aiohttp.org\",\n        \"GitHub: issues\": \"https://github.com/aio-libs/aiohttp/issues\",\n        \"GitHub: repo\": \"https://github.com/aio-libs/aiohttp\",\n    },\n    license=\"Apache 2\",\n    packages=[\"aiohttp\"],\n    python_requires=\">=3.6\",\n    install_requires=install_requires,\n    extras_require={\n        \"speedups\": [\n            \"aiodns\",\n            \"Brotli\",\n            \"cchardet\",\n        ],\n    },\n    include_package_data=True,\n    ext_modules=extensions,\n    cmdclass=dict(build_ext=ve_build_ext),\n)\n\ntry:\n    setup(**args)\nexcept BuildFailed:\n    print(\"************************************************************\")\n    print(\"Cannot compile C accelerator module, use pure python version\")\n    print(\"************************************************************\")\n    del args[\"ext_modules\"]\n    del args[\"cmdclass\"]\n    setup(**args)\n", "path": "setup.py"}]}