1 py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
2 py$(PYV): commands[0]> python -c 'import greenlet._greenlet as G; assert G.GREENLET_USE_STANDARD_THREADING'
3 py$(PYV): commands[1]> python -m unittest discover -v greenlet.tests
4 test_break_ctxvars (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
5 test_context_assignment_different_thread (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
6 test_context_assignment_while_running (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
7 test_context_assignment_wrong_type (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
8 test_context_not_propagated (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
9 test_context_propagated_by_context_run (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
10 test_context_propagated_by_setting_attribute (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
11 test_context_shared (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
12 test_not_broken_if_using_attribute_instead_of_context_run (greenlet.tests.test_contextvars.ContextVarsTests) ... ok
13 test_contextvars_errors (greenlet.tests.test_contextvars.NoContextVarsTests) ... skipped 'ContextVar supported'
14 test_exception_switch (greenlet.tests.test_cpp.CPPTests) ... ok
15 test_unhandled_exception_in_greenlet_aborts (greenlet.tests.test_cpp.CPPTests) ... ok
16 test_unhandled_nonstd_exception_aborts (greenlet.tests.test_cpp.CPPTests) ... ok
17 test_unhandled_std_exception_aborts (greenlet.tests.test_cpp.CPPTests) ... ok
18 test_unhandled_std_exception_as_greenlet_function_aborts (greenlet.tests.test_cpp.CPPTests) ... ok
19 test_getcurrent (greenlet.tests.test_extension_interface.CAPITests) ... ok
20 test_instance_of_wrong_type (greenlet.tests.test_extension_interface.CAPITests) ... ok
21 test_new_greenlet (greenlet.tests.test_extension_interface.CAPITests) ... ok
22 test_non_traceback_param (greenlet.tests.test_extension_interface.CAPITests) ... ok
23 test_not_throwable (greenlet.tests.test_extension_interface.CAPITests) ... ok
24 test_raise_greenlet_dead (greenlet.tests.test_extension_interface.CAPITests) ... ok
25 test_raise_greenlet_error (greenlet.tests.test_extension_interface.CAPITests) ... ok
26 test_setparent (greenlet.tests.test_extension_interface.CAPITests) ... ok
27 test_switch (greenlet.tests.test_extension_interface.CAPITests) ... ok
28 test_switch_kwargs (greenlet.tests.test_extension_interface.CAPITests) ... ok
29 test_throw (greenlet.tests.test_extension_interface.CAPITests) ... ok
30 test_circular_greenlet (greenlet.tests.test_gc.GCTests) ... ok
31 test_dead_circular_ref (greenlet.tests.test_gc.GCTests) ... ok
32 test_finalizer_crash (greenlet.tests.test_gc.GCTests) ... ok
33 test_inactive_ref (greenlet.tests.test_gc.GCTests) ... ok
34 test_generator (greenlet.tests.test_generator.GeneratorTests) ... ok
35 test_genlet_bad (greenlet.tests.test_generator_nested.NestedGeneratorTests) ... ok
36 test_genlet_simple (greenlet.tests.test_generator_nested.NestedGeneratorTests) ... ok
37 test_layered_genlets (greenlet.tests.test_generator_nested.NestedGeneratorTests) ... ok
38 test_nested_genlets (greenlet.tests.test_generator_nested.NestedGeneratorTests) ... ok
39 test_permutations (greenlet.tests.test_generator_nested.NestedGeneratorTests) ... ok
40 test_failed_to_initialstub (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
41 test_failed_to_slp_switch_into_running (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
42 test_failed_to_switch_into_running (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
43 test_reentrant_switch_GreenletAlreadyStartedInPython (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
44 test_reentrant_switch_run_callable_has_del (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
45 test_reentrant_switch_three_greenlets (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
46 test_reentrant_switch_three_greenlets2 (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
47 test_reentrant_switch_two_greenlets (greenlet.tests.test_greenlet.TestBrokenGreenlets) ... ok
48 test_abstract_subclasses (greenlet.tests.test_greenlet.TestGreenlet) ... ok
49 test_can_access_f_back_of_suspended_greenlet (greenlet.tests.test_greenlet.TestGreenlet) ... ok
50 test_dealloc (greenlet.tests.test_greenlet.TestGreenlet) ... ok
51 test_dealloc_catches_GreenletExit_throws_other (greenlet.tests.test_greenlet.TestGreenlet) ... ok
52 test_dealloc_other_thread (greenlet.tests.test_greenlet.TestGreenlet) ... ok
53 test_dealloc_switch_args_not_lost (greenlet.tests.test_greenlet.TestGreenlet) ... ok
54 test_deepcopy (greenlet.tests.test_greenlet.TestGreenlet) ... ok
55 test_exc_state (greenlet.tests.test_greenlet.TestGreenlet) ... ok
56 test_exception (greenlet.tests.test_greenlet.TestGreenlet) ... ok
57 test_falling_off_end_switches_to_unstarted_parent_raises_error (greenlet.tests.test_greenlet.TestGreenlet) ... ok
58 test_falling_off_end_switches_to_unstarted_parent_works (greenlet.tests.test_greenlet.TestGreenlet) ... ok
59 test_frame (greenlet.tests.test_greenlet.TestGreenlet) ... ok
60 test_frames_always_exposed (greenlet.tests.test_greenlet.TestGreenlet) ... ok
61 test_get_stack_with_nested_c_calls (greenlet.tests.test_greenlet.TestGreenlet) ... ok
62 test_implicit_parent_with_threads (greenlet.tests.test_greenlet.TestGreenlet) ... ok
63 test_instance_dict (greenlet.tests.test_greenlet.TestGreenlet) ... ok
64 test_issue_245_reference_counting_subclass_no_threads (greenlet.tests.test_greenlet.TestGreenlet) ... ok
65 test_issue_245_reference_counting_subclass_threads (greenlet.tests.test_greenlet.TestGreenlet) ... ok
66 test_parent_equals_None (greenlet.tests.test_greenlet.TestGreenlet) ... ok
67 test_parent_restored_on_kill (greenlet.tests.test_greenlet.TestGreenlet) ... ok
68 test_parent_return_failure (greenlet.tests.test_greenlet.TestGreenlet) ... ok
69 test_recursive_startup (greenlet.tests.test_greenlet.TestGreenlet) ... ok
70 test_run_equals_None (greenlet.tests.test_greenlet.TestGreenlet) ... ok
71 test_running_greenlet_has_no_run (greenlet.tests.test_greenlet.TestGreenlet) ... ok
72 test_send_exception (greenlet.tests.test_greenlet.TestGreenlet) ... ok
73 test_simple (greenlet.tests.test_greenlet.TestGreenlet) ... ok
74 test_switch_kwargs (greenlet.tests.test_greenlet.TestGreenlet) ... ok
75 test_switch_kwargs_to_parent (greenlet.tests.test_greenlet.TestGreenlet) ... ok
76 test_switch_no_run_raises_AttributeError (greenlet.tests.test_greenlet.TestGreenlet) ... ok
77 test_switch_to_another_thread (greenlet.tests.test_greenlet.TestGreenlet) ... ok
78 test_switch_to_dead_greenlet_reparent (greenlet.tests.test_greenlet.TestGreenlet) ... ok
79 test_switch_to_dead_greenlet_with_unstarted_perverse_parent (greenlet.tests.test_greenlet.TestGreenlet) ... ok
80 test_thread_bug (greenlet.tests.test_greenlet.TestGreenlet) ... ok
81 test_threaded_updatecurrent (greenlet.tests.test_greenlet.TestGreenlet) ... ok
82 test_threads (greenlet.tests.test_greenlet.TestGreenlet) ... ok
83 test_throw_exception_not_lost (greenlet.tests.test_greenlet.TestGreenlet) ... ok
84 test_throw_no_run_raises_AttributeError (greenlet.tests.test_greenlet.TestGreenlet) ... ok
85 test_throw_to_dead_thread_doesnt_crash (greenlet.tests.test_greenlet.TestGreenlet) ... ok
86 test_throw_to_dead_thread_doesnt_crash_wait (greenlet.tests.test_greenlet.TestGreenlet) ... ok
87 test_tuple_subclass (greenlet.tests.test_greenlet.TestGreenlet) ... ok
88 test_two_children (greenlet.tests.test_greenlet.TestGreenlet) ... ok
89 test_two_recursive_children (greenlet.tests.test_greenlet.TestGreenlet) ... ok
90 test_cannot_delete_parent (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
91 test_cannot_delete_parent_of_main (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
92 test_deeper_cycle (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
93 test_main_greenlet_parent_is_none (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
94 test_set_parent_wrong_types (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
95 test_threaded_reparent (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
96 test_trivial_cycle (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
97 test_trivial_cycle_main (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
98 test_unexpected_reparenting (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
99 test_unexpected_reparenting_thread_running (greenlet.tests.test_greenlet.TestGreenletSetParentErrors) ... ok
100 test_main_greenlet_is_greenlet (greenlet.tests.test_greenlet.TestMainGreenlet) ... ok
101 test_main_greenlet_type_can_be_subclassed (greenlet.tests.test_greenlet.TestMainGreenlet) ... ok
102 test_dead (greenlet.tests.test_greenlet.TestRepr) ... ok
103 test_formatting_produces_native_str (greenlet.tests.test_greenlet.TestRepr) ... ok
104 test_initial (greenlet.tests.test_greenlet.TestRepr) ... ok
105 test_main_from_other_thread (greenlet.tests.test_greenlet.TestRepr) ... ok
106 test_main_in_background (greenlet.tests.test_greenlet.TestRepr) ... ok
107 test_main_while_running (greenlet.tests.test_greenlet.TestRepr) ... ok
108 test_it (greenlet.tests.test_greenlet_trash.TestTrashCanReEnter) ... ok
109 test_arg_refs (greenlet.tests.test_leaks.TestLeaks) ... ok
110 test_issue251_issue252_explicit_reference_not_collectable (greenlet.tests.test_leaks.TestLeaks) ... ok
111 test_issue251_issue252_need_to_collect_in_background (greenlet.tests.test_leaks.TestLeaks) ... ok
112 test_issue251_issue252_need_to_collect_in_background_cleanup_disabled (greenlet.tests.test_leaks.TestLeaks) ... ok
113 test_issue251_killing_cross_thread_leaks_list (greenlet.tests.test_leaks.TestLeaks) ... ok
114 test_issue251_with_cleanup_disabled (greenlet.tests.test_leaks.TestLeaks) ... ok
115 test_kwarg_refs (greenlet.tests.test_leaks.TestLeaks) ... ok
116 test_threaded_adv_leak (greenlet.tests.test_leaks.TestLeaks) ... ok
117 test_threaded_leak (greenlet.tests.test_leaks.TestLeaks) ... ok
118 test_untracked_memory_doesnt_increase (greenlet.tests.test_leaks.TestLeaks) ... skipped 'uss not supported'
119 test_untracked_memory_doesnt_increase_unfinished_thread_dealloc_in_main (greenlet.tests.test_leaks.TestLeaks) ... Exception in thread Thread-250:
120 Traceback (most recent call last):
121 File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/greenlet/tests/__init__.py", line 204, in get_process_uss
122 return psutil.Process().memory_full_info().uss
123 AttributeError: 'pmem' object has no attribute 'uss'
125 The above exception was the direct cause of the following exception:
127 Traceback (most recent call last):
128 File "$(PYTHON_DIR)/threading.py", line 980, in _bootstrap_inner
130 File "$(PYTHON_DIR)/threading.py", line 917, in run
131 self._target(*self._args, **self._kwargs)
132 File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/greenlet/tests/test_leaks.py", line 386, in __call__
133 self.uss_before = test.get_process_uss()
134 File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/greenlet/tests/__init__.py", line 206, in get_process_uss
135 raise unittest.SkipTest("uss not supported") from e
136 unittest.case.SkipTest: uss not supported
137 skipped 'uss not supported'
138 test_untracked_memory_doesnt_increase_unfinished_thread_dealloc_in_thread (greenlet.tests.test_leaks.TestLeaks) ... skipped 'Always fails: https://github.com/python-greenlet/greenlet/issues/379'
139 test_stack_saved (greenlet.tests.test_stack_saved.Test) ... ok
140 test_class (greenlet.tests.test_throw.ThrowTests) ... ok
141 test_instance_of_wrong_type (greenlet.tests.test_throw.ThrowTests) ... ok
142 test_kill (greenlet.tests.test_throw.ThrowTests) ... ok
143 test_non_traceback_param (greenlet.tests.test_throw.ThrowTests) ... ok
144 test_not_throwable (greenlet.tests.test_throw.ThrowTests) ... ok
145 test_throw_goes_to_original_parent (greenlet.tests.test_throw.ThrowTests) ... ok
146 test_val (greenlet.tests.test_throw.ThrowTests) ... ok
147 test_a_greenlet_tracing (greenlet.tests.test_tracing.TestGreenletTracing) ... ok
148 test_b_exception_disables_tracing (greenlet.tests.test_tracing.TestGreenletTracing) ... ok
149 test_set_same_tracer_twice (greenlet.tests.test_tracing.TestGreenletTracing) ... ok
150 test_trace_events_from_greenlet_func_sets_profiler (greenlet.tests.test_tracing.TestPythonTracing) ... ok
151 test_trace_events_from_greenlet_subclass_sets_profiler (greenlet.tests.test_tracing.TestPythonTracing) ... ok
152 test_trace_events_into_greenlet_func_already_set (greenlet.tests.test_tracing.TestPythonTracing) ... ok
153 test_trace_events_into_greenlet_subclass_already_set (greenlet.tests.test_tracing.TestPythonTracing) ... ok
154 test_trace_events_multiple_greenlets_switching (greenlet.tests.test_tracing.TestPythonTracing) ... ok
155 test_trace_events_multiple_greenlets_switching_siblings (greenlet.tests.test_tracing.TestPythonTracing) ... ok
156 test_trace_events_trivial (greenlet.tests.test_tracing.TestPythonTracing) ... ok
157 test_version (greenlet.tests.test_version.VersionTests) ... ok
158 test_dead_weakref (greenlet.tests.test_weakref.WeakRefTests) ... ok
159 test_dealloc_weakref (greenlet.tests.test_weakref.WeakRefTests) ... ok
160 test_inactive_weakref (greenlet.tests.test_weakref.WeakRefTests) ... ok
162 ----------------------------------------------------------------------
167 Threads: Waiting for only 1 --> 1
168 MGlets : Waiting for only 2 --> 3
169 py$(PYV): commands[2]> python -m sphinx.cmd.build -b doctest -d docs/_build/doctrees-py$(PYV) docs docs/_build/doctest-py$(PYV)
170 Running Sphinx v7.4.7
171 loading translations [en]... done
172 making output directory... done
173 Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.
174 loading intersphinx inventory 'python' from https://docs.python.org/objects.inv...
175 loading intersphinx inventory 'gevent' from https://www.gevent.org/objects.inv...
176 intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
177 building [mo]: targets for 0 po files that are out of date
179 building [doctest]: targets for 15 source files that are out of date
180 updating environment: [new config] 15 added, 0 changed, 0 removed
181 reading sources... [ 7%] api
182 reading sources... [ 13%] c_api
183 reading sources... [ 20%] caveats
184 reading sources... [ 27%] changes
185 reading sources... [ 33%] contextvars
186 reading sources... [ 40%] creating_executing_greenlets
187 reading sources... [ 47%] development
188 reading sources... [ 53%] greenlet
189 reading sources... [ 60%] greenlet_gc
190 reading sources... [ 67%] gui_example
191 reading sources... [ 73%] history
192 reading sources... [ 80%] index
193 reading sources... [ 87%] python_threads
194 reading sources... [ 93%] switching
195 reading sources... [100%] tracing
197 CHANGES.rst:3: WARNING: Duplicate explicit target name: "pr".
198 looking for now-outdated files... none found
199 pickling environment... done
200 checking consistency... done
203 Document: contextvars
204 ---------------------
205 1 items passed all tests:
208 18 passed and 0 failed.
211 Document: creating_executing_greenlets
212 --------------------------------------
213 1 items passed all tests:
216 38 passed and 0 failed.
219 Document: greenlet_gc
220 ---------------------
221 1 items passed all tests:
224 30 passed and 0 failed.
229 1 items passed all tests:
232 17 passed and 0 failed.
235 Document: gui_example
236 ---------------------
237 1 items passed all tests:
240 14 passed and 0 failed.
243 Document: python_threads
244 ------------------------
245 1 items passed all tests:
248 16 passed and 0 failed.
253 1 items passed all tests:
256 16 passed and 0 failed.
261 1 items passed all tests:
264 9 passed and 0 failed.
271 0 failures in setup code
272 0 failures in cleanup code
273 build succeeded, 1 warning.
275 Testing of doctests in the sources finished, look at the results in docs/_build/doctest-py$(PYV)/output.txt.