We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
note should print when verbosity is set to at least verbose 
We have the `note` function that prints its argument only on the final example, but actually it should probably print it for *every* example when `verbosity >= Verbosity.verbose`, so that people can actually see the tests as they run. 

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `hypothesis-python/src/hypothesis/control.py`
Content:
```
1 # coding=utf-8
2 #
3 # This file is part of Hypothesis, which may be found at
4 # https://github.com/HypothesisWorks/hypothesis-python
5 #
6 # Most of this work is copyright (C) 2013-2018 David R. MacIver
7 # (david@drmaciver.com), but it contains contributions by others. See
8 # CONTRIBUTING.rst for a full list of people who may hold copyright, and
9 # consult the git log if you need to determine who owns an individual
10 # contribution.
11 #
12 # This Source Code Form is subject to the terms of the Mozilla Public License,
13 # v. 2.0. If a copy of the MPL was not distributed with this file, You can
14 # obtain one at http://mozilla.org/MPL/2.0/.
15 #
16 # END HEADER
17 
18 from __future__ import division, print_function, absolute_import
19 
20 import traceback
21 
22 from hypothesis.errors import CleanupFailed, InvalidArgument, \
23     UnsatisfiedAssumption
24 from hypothesis.reporting import report
25 from hypothesis.utils.dynamicvariables import DynamicVariable
26 
27 if False:
28     from typing import Any, AnyStr  # noqa
29 
30 
31 def reject():
32     raise UnsatisfiedAssumption()
33 
34 
35 def assume(condition):
36     # type: (Any) -> bool
37     """Calling ``assume`` is like an :ref:`assert <python:assert>` that marks
38     the example as bad, rather than failing the test.
39 
40     This allows you to specify properties that you *assume* will be
41     true, and let Hypothesis try to avoid similar examples in future.
42     """
43     if not condition:
44         raise UnsatisfiedAssumption()
45     return True
46 
47 
48 _current_build_context = DynamicVariable(None)
49 
50 
51 def current_build_context():
52     context = _current_build_context.value
53     if context is None:
54         raise InvalidArgument(
55             u'No build context registered')
56     return context
57 
58 
59 class BuildContext(object):
60 
61     def __init__(self, data, is_final=False, close_on_capture=True):
62         self.data = data
63         self.tasks = []
64         self.is_final = is_final
65         self.close_on_capture = close_on_capture
66         self.close_on_del = False
67         self.notes = []
68 
69     def __enter__(self):
70         self.assign_variable = _current_build_context.with_value(self)
71         self.assign_variable.__enter__()
72         return self
73 
74     def __exit__(self, exc_type, exc_value, tb):
75         self.assign_variable.__exit__(exc_type, exc_value, tb)
76         if self.close() and exc_type is None:
77             raise CleanupFailed()
78 
79     def local(self):
80         return _current_build_context.with_value(self)
81 
82     def close(self):
83         any_failed = False
84         for task in self.tasks:
85             try:
86                 task()
87             except BaseException:
88                 any_failed = True
89                 report(traceback.format_exc())
90         return any_failed
91 
92 
93 def cleanup(teardown):
94     """Register a function to be called when the current test has finished
95     executing. Any exceptions thrown in teardown will be printed but not
96     rethrown.
97 
98     Inside a test this isn't very interesting, because you can just use
99     a finally block, but note that you can use this inside map, flatmap,
100     etc. in order to e.g. insist that a value is closed at the end.
101     """
102     context = _current_build_context.value
103     if context is None:
104         raise InvalidArgument(
105             u'Cannot register cleanup outside of build context')
106     context.tasks.append(teardown)
107 
108 
109 def note(value):
110     # type: (AnyStr) -> None
111     """Report this value in the final execution."""
112     context = _current_build_context.value
113     if context is None:
114         raise InvalidArgument(
115             'Cannot make notes outside of a test')
116     context.notes.append(value)
117     if context.is_final:
118         report(value)
119 
120 
121 def event(value):
122     # type: (AnyStr) -> None
123     """Record an event that occurred this test. Statistics on number of test
124     runs with each event will be reported at the end if you run Hypothesis in
125     statistics reporting mode.
126 
127     Events should be strings or convertible to them.
128     """
129     context = _current_build_context.value
130     if context is None:
131         raise InvalidArgument(
132             'Cannot make record events outside of a test')
133 
134     if context.data is not None:
135         context.data.note_event(value)
136
```
--- 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/hypothesis-python/src/hypothesis/control.py b/hypothesis-python/src/hypothesis/control.py
--- a/hypothesis-python/src/hypothesis/control.py
+++ b/hypothesis-python/src/hypothesis/control.py
@@ -19,6 +19,7 @@
 
 import traceback
 
+from hypothesis import Verbosity, settings
 from hypothesis.errors import CleanupFailed, InvalidArgument, \
     UnsatisfiedAssumption
 from hypothesis.reporting import report
@@ -114,7 +115,7 @@
         raise InvalidArgument(
             'Cannot make notes outside of a test')
     context.notes.append(value)
-    if context.is_final:
+    if context.is_final or settings.default.verbosity >= Verbosity.verbose:
         report(value)

{"golden_diff": "diff --git a/hypothesis-python/src/hypothesis/control.py b/hypothesis-python/src/hypothesis/control.py\n--- a/hypothesis-python/src/hypothesis/control.py\n+++ b/hypothesis-python/src/hypothesis/control.py\n@@ -19,6 +19,7 @@\n \n import traceback\n \n+from hypothesis import Verbosity, settings\n from hypothesis.errors import CleanupFailed, InvalidArgument, \\\n     UnsatisfiedAssumption\n from hypothesis.reporting import report\n@@ -114,7 +115,7 @@\n         raise InvalidArgument(\n             'Cannot make notes outside of a test')\n     context.notes.append(value)\n-    if context.is_final:\n+    if context.is_final or settings.default.verbosity >= Verbosity.verbose:\n         report(value)\n", "issue": "note should print when verbosity is set to at least verbose \nWe have the `note` function that prints its argument only on the final example, but actually it should probably print it for *every* example when `verbosity >= Verbosity.verbose`, so that people can actually see the tests as they run. \n", "before_files": [{"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who may hold copyright, and\n# consult the git log if you need to determine who owns an individual\n# contribution.\n#\n# This Source Code Form is subject to the terms of the Mozilla Public License,\n# v. 2.0. If a copy of the MPL was not distributed with this file, You can\n# obtain one at http://mozilla.org/MPL/2.0/.\n#\n# END HEADER\n\nfrom __future__ import division, print_function, absolute_import\n\nimport traceback\n\nfrom hypothesis.errors import CleanupFailed, InvalidArgument, \\\n    UnsatisfiedAssumption\nfrom hypothesis.reporting import report\nfrom hypothesis.utils.dynamicvariables import DynamicVariable\n\nif False:\n    from typing import Any, AnyStr  # noqa\n\n\ndef reject():\n    raise UnsatisfiedAssumption()\n\n\ndef assume(condition):\n    # type: (Any) -> bool\n    \"\"\"Calling ``assume`` is like an :ref:`assert <python:assert>` that marks\n    the example as bad, rather than failing the test.\n\n    This allows you to specify properties that you *assume* will be\n    true, and let Hypothesis try to avoid similar examples in future.\n    \"\"\"\n    if not condition:\n        raise UnsatisfiedAssumption()\n    return True\n\n\n_current_build_context = DynamicVariable(None)\n\n\ndef current_build_context():\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            u'No build context registered')\n    return context\n\n\nclass BuildContext(object):\n\n    def __init__(self, data, is_final=False, close_on_capture=True):\n        self.data = data\n        self.tasks = []\n        self.is_final = is_final\n        self.close_on_capture = close_on_capture\n        self.close_on_del = False\n        self.notes = []\n\n    def __enter__(self):\n        self.assign_variable = _current_build_context.with_value(self)\n        self.assign_variable.__enter__()\n        return self\n\n    def __exit__(self, exc_type, exc_value, tb):\n        self.assign_variable.__exit__(exc_type, exc_value, tb)\n        if self.close() and exc_type is None:\n            raise CleanupFailed()\n\n    def local(self):\n        return _current_build_context.with_value(self)\n\n    def close(self):\n        any_failed = False\n        for task in self.tasks:\n            try:\n                task()\n            except BaseException:\n                any_failed = True\n                report(traceback.format_exc())\n        return any_failed\n\n\ndef cleanup(teardown):\n    \"\"\"Register a function to be called when the current test has finished\n    executing. Any exceptions thrown in teardown will be printed but not\n    rethrown.\n\n    Inside a test this isn't very interesting, because you can just use\n    a finally block, but note that you can use this inside map, flatmap,\n    etc. in order to e.g. insist that a value is closed at the end.\n    \"\"\"\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            u'Cannot register cleanup outside of build context')\n    context.tasks.append(teardown)\n\n\ndef note(value):\n    # type: (AnyStr) -> None\n    \"\"\"Report this value in the final execution.\"\"\"\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            'Cannot make notes outside of a test')\n    context.notes.append(value)\n    if context.is_final:\n        report(value)\n\n\ndef event(value):\n    # type: (AnyStr) -> None\n    \"\"\"Record an event that occurred this test. Statistics on number of test\n    runs with each event will be reported at the end if you run Hypothesis in\n    statistics reporting mode.\n\n    Events should be strings or convertible to them.\n    \"\"\"\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            'Cannot make record events outside of a test')\n\n    if context.data is not None:\n        context.data.note_event(value)\n", "path": "hypothesis-python/src/hypothesis/control.py"}], "after_files": [{"content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a full list of people who may hold copyright, and\n# consult the git log if you need to determine who owns an individual\n# contribution.\n#\n# This Source Code Form is subject to the terms of the Mozilla Public License,\n# v. 2.0. If a copy of the MPL was not distributed with this file, You can\n# obtain one at http://mozilla.org/MPL/2.0/.\n#\n# END HEADER\n\nfrom __future__ import division, print_function, absolute_import\n\nimport traceback\n\nfrom hypothesis import Verbosity, settings\nfrom hypothesis.errors import CleanupFailed, InvalidArgument, \\\n    UnsatisfiedAssumption\nfrom hypothesis.reporting import report\nfrom hypothesis.utils.dynamicvariables import DynamicVariable\n\nif False:\n    from typing import Any, AnyStr  # noqa\n\n\ndef reject():\n    raise UnsatisfiedAssumption()\n\n\ndef assume(condition):\n    # type: (Any) -> bool\n    \"\"\"Calling ``assume`` is like an :ref:`assert <python:assert>` that marks\n    the example as bad, rather than failing the test.\n\n    This allows you to specify properties that you *assume* will be\n    true, and let Hypothesis try to avoid similar examples in future.\n    \"\"\"\n    if not condition:\n        raise UnsatisfiedAssumption()\n    return True\n\n\n_current_build_context = DynamicVariable(None)\n\n\ndef current_build_context():\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            u'No build context registered')\n    return context\n\n\nclass BuildContext(object):\n\n    def __init__(self, data, is_final=False, close_on_capture=True):\n        self.data = data\n        self.tasks = []\n        self.is_final = is_final\n        self.close_on_capture = close_on_capture\n        self.close_on_del = False\n        self.notes = []\n\n    def __enter__(self):\n        self.assign_variable = _current_build_context.with_value(self)\n        self.assign_variable.__enter__()\n        return self\n\n    def __exit__(self, exc_type, exc_value, tb):\n        self.assign_variable.__exit__(exc_type, exc_value, tb)\n        if self.close() and exc_type is None:\n            raise CleanupFailed()\n\n    def local(self):\n        return _current_build_context.with_value(self)\n\n    def close(self):\n        any_failed = False\n        for task in self.tasks:\n            try:\n                task()\n            except BaseException:\n                any_failed = True\n                report(traceback.format_exc())\n        return any_failed\n\n\ndef cleanup(teardown):\n    \"\"\"Register a function to be called when the current test has finished\n    executing. Any exceptions thrown in teardown will be printed but not\n    rethrown.\n\n    Inside a test this isn't very interesting, because you can just use\n    a finally block, but note that you can use this inside map, flatmap,\n    etc. in order to e.g. insist that a value is closed at the end.\n    \"\"\"\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            u'Cannot register cleanup outside of build context')\n    context.tasks.append(teardown)\n\n\ndef note(value):\n    # type: (AnyStr) -> None\n    \"\"\"Report this value in the final execution.\"\"\"\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            'Cannot make notes outside of a test')\n    context.notes.append(value)\n    if context.is_final or settings.default.verbosity >= Verbosity.verbose:\n        report(value)\n\n\ndef event(value):\n    # type: (AnyStr) -> None\n    \"\"\"Record an event that occurred this test. Statistics on number of test\n    runs with each event will be reported at the end if you run Hypothesis in\n    statistics reporting mode.\n\n    Events should be strings or convertible to them.\n    \"\"\"\n    context = _current_build_context.value\n    if context is None:\n        raise InvalidArgument(\n            'Cannot make record events outside of a test')\n\n    if context.data is not None:\n        context.data.note_event(value)\n", "path": "hypothesis-python/src/hypothesis/control.py"}]}