1 py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV)
2 py$(PYV): commands[0]> python -m coverage run -m unittest discover -t . -s test --verbose
3 test_closing (test.test_contextlib.ClosingTestCase) ... ok
4 test_closing_error (test.test_contextlib.ClosingTestCase) ... ok
5 test_instance_docs (test.test_contextlib.ClosingTestCase) ... ok
6 test_contextmanager_attribs (test.test_contextlib.ContextManagerTestCase) ... ok
7 test_contextmanager_do_not_unchain_non_stopiteration_exceptions (test.test_contextlib.ContextManagerTestCase) ... ok
8 test_contextmanager_doc_attrib (test.test_contextlib.ContextManagerTestCase) ... ok
9 test_contextmanager_except (test.test_contextlib.ContextManagerTestCase) ... ok
10 test_contextmanager_except_pep479 (test.test_contextlib.ContextManagerTestCase) ... ok
11 test_contextmanager_except_stopiter (test.test_contextlib.ContextManagerTestCase) ... ok
12 test_contextmanager_finally (test.test_contextlib.ContextManagerTestCase) ... ok
13 test_contextmanager_no_reraise (test.test_contextlib.ContextManagerTestCase) ... ok
14 test_contextmanager_plain (test.test_contextlib.ContextManagerTestCase) ... ok
15 test_contextmanager_trap_yield_after_throw (test.test_contextlib.ContextManagerTestCase) ... ok
16 test_instance_docstring_given_cm_docstring (test.test_contextlib.ContextManagerTestCase) ... ok
17 test_keywords (test.test_contextlib.ContextManagerTestCase) ... ok
18 test_nokeepref (test.test_contextlib.ContextManagerTestCase) ... ok
19 test_param_errors (test.test_contextlib.ContextManagerTestCase) ... ok
20 test_recursive (test.test_contextlib.ContextManagerTestCase) ... ok
21 testWithOpen (test.test_contextlib.FileContextTestCase) ... ok
22 testWithBoundedSemaphore (test.test_contextlib.LockContextTestCase) ... ok
23 testWithCondition (test.test_contextlib.LockContextTestCase) ... ok
24 testWithLock (test.test_contextlib.LockContextTestCase) ... ok
25 testWithRLock (test.test_contextlib.LockContextTestCase) ... ok
26 testWithSemaphore (test.test_contextlib.LockContextTestCase) ... ok
27 test_nullcontext (test.test_contextlib.NullcontextTestCase) ... ok
28 test_enter (test.test_contextlib.TestAbstractContextManager) ... ok
29 test_exit_is_abstract (test.test_contextlib.TestAbstractContextManager) ... ok
30 test_structural_subclassing (test.test_contextlib.TestAbstractContextManager) ... ok
31 test_contextdecorator (test.test_contextlib.TestContextDecorator) ... ok
32 test_contextdecorator_as_mixin (test.test_contextlib.TestContextDecorator) ... ok
33 test_contextdecorator_with_exception (test.test_contextlib.TestContextDecorator) ... ok
34 test_contextmanager_as_decorator (test.test_contextlib.TestContextDecorator) ... ok
35 test_decorating_method (test.test_contextlib.TestContextDecorator) ... ok
36 test_decorator (test.test_contextlib.TestContextDecorator) ... ok
37 test_decorator_with_exception (test.test_contextlib.TestContextDecorator) ... ok
38 test_instance_docs (test.test_contextlib.TestContextDecorator) ... ok
39 test_typo_enter (test.test_contextlib.TestContextDecorator) ... ok
40 test_typo_exit (test.test_contextlib.TestContextDecorator) ... ok
41 test_body_exception_suppress (test.test_contextlib.TestExitStack) ... ok
42 test_callback (test.test_contextlib.TestExitStack) ... ok
43 test_close (test.test_contextlib.TestExitStack) ... ok
44 test_dont_reraise_RuntimeError (test.test_contextlib.TestExitStack) ... ok
45 test_enter_context (test.test_contextlib.TestExitStack) ... ok
46 test_excessive_nesting (test.test_contextlib.TestExitStack) ... ok
47 test_exit_exception_chaining (test.test_contextlib.TestExitStack) ... ok
48 test_exit_exception_chaining_reference (test.test_contextlib.TestExitStack) ... ok
49 test_exit_exception_chaining_suppress (test.test_contextlib.TestExitStack) ... ok
50 test_exit_exception_non_suppressing (test.test_contextlib.TestExitStack) ... ok
51 test_exit_exception_with_correct_context (test.test_contextlib.TestExitStack) ... ok
52 test_exit_exception_with_existing_context (test.test_contextlib.TestExitStack) ... ok
53 test_exit_raise (test.test_contextlib.TestExitStack) ... ok
54 test_exit_suppress (test.test_contextlib.TestExitStack) ... ok
55 test_instance_bypass (test.test_contextlib.TestExitStack) ... ok
56 test_instance_docs (test.test_contextlib.TestExitStack) ... ok
57 test_no_resources (test.test_contextlib.TestExitStack) ... ok
58 test_pop_all (test.test_contextlib.TestExitStack) ... ok
59 test_push (test.test_contextlib.TestExitStack) ... ok
60 test_cm_is_reentrant (test.test_contextlib.TestRedirectStderr) ... ok
61 test_cm_is_reusable (test.test_contextlib.TestRedirectStderr) ... ok
62 test_enter_result_is_target (test.test_contextlib.TestRedirectStderr) ... ok
63 test_instance_docs (test.test_contextlib.TestRedirectStderr) ... ok
64 test_no_redirect_in_init (test.test_contextlib.TestRedirectStderr) ... ok
65 test_redirect_to_string_io (test.test_contextlib.TestRedirectStderr) ... ok
66 test_cm_is_reentrant (test.test_contextlib.TestRedirectStdout) ... ok
67 test_cm_is_reusable (test.test_contextlib.TestRedirectStdout) ... ok
68 test_enter_result_is_target (test.test_contextlib.TestRedirectStdout) ... ok
69 test_instance_docs (test.test_contextlib.TestRedirectStdout) ... ok
70 test_no_redirect_in_init (test.test_contextlib.TestRedirectStdout) ... ok
71 test_redirect_to_string_io (test.test_contextlib.TestRedirectStdout) ... ok
72 test_cm_is_reentrant (test.test_contextlib.TestSuppress) ... ok
73 test_exact_exception (test.test_contextlib.TestSuppress) ... ok
74 test_exception_hierarchy (test.test_contextlib.TestSuppress) ... ok
75 test_instance_docs (test.test_contextlib.TestSuppress) ... ok
76 test_multiple_exception_args (test.test_contextlib.TestSuppress) ... ok
77 test_no_args (test.test_contextlib.TestSuppress) ... ok
78 test_no_exception (test.test_contextlib.TestSuppress) ... ok
79 test_no_result_from_enter (test.test_contextlib.TestSuppress) ... ok
80 test_other_exception (test.test_contextlib.TestSuppress) ... ok
81 test_aclosing (test.test_contextlib_async.AclosingTestCase) ... ok
82 test_aclosing_bpo41229 (test.test_contextlib_async.AclosingTestCase) ... ok
83 test_aclosing_error (test.test_contextlib_async.AclosingTestCase) ... ok
84 test_instance_docs (test.test_contextlib_async.AclosingTestCase) ... ok
85 test_contextmanager_attribs (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
86 test_contextmanager_doc_attrib (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
87 test_contextmanager_except (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
88 test_contextmanager_except_stopiter (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
89 test_contextmanager_finally (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
90 test_contextmanager_no_reraise (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
91 test_contextmanager_non_normalised (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
92 test_contextmanager_plain (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
93 test_contextmanager_trap_no_yield (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
94 test_contextmanager_trap_second_yield (test.test_contextlib_async.AsyncContextManagerTestCase) ... Task was destroyed but it is pending!
95 task: <Task pending coro=<<async_generator_athrow without __name__>()>>
97 test_contextmanager_trap_yield_after_throw (test.test_contextlib_async.AsyncContextManagerTestCase) ... Task was destroyed but it is pending!
98 task: <Task pending coro=<<async_generator_athrow without __name__>()>>
100 test_contextmanager_wrap_runtimeerror (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
101 test_instance_docstring_given_cm_docstring (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
102 test_keywords (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
103 test_recursive (test.test_contextlib_async.AsyncContextManagerTestCase) ... ok
104 test_async_gen_propagates_generator_exit (test.test_contextlib_async.TestAbstractAsyncContextManager) ... Task was destroyed but it is pending!
105 task: <Task pending coro=<<async_generator_athrow without __name__>()>>
107 test_enter (test.test_contextlib_async.TestAbstractAsyncContextManager) ... ok
108 test_exit_is_abstract (test.test_contextlib_async.TestAbstractAsyncContextManager) ... ok
109 test_structural_subclassing (test.test_contextlib_async.TestAbstractAsyncContextManager) ... ok
110 test_async_callback (test.test_contextlib_async.TestAsyncExitStack) ... ok
111 test_async_enter_context (test.test_contextlib_async.TestAsyncExitStack) ... ok
112 test_async_exit_exception_chaining (test.test_contextlib_async.TestAsyncExitStack) ... ok
113 test_async_push (test.test_contextlib_async.TestAsyncExitStack) ... ok
114 test_body_exception_suppress (test.test_contextlib_async.TestAsyncExitStack) ... ok
115 test_callback (test.test_contextlib_async.TestAsyncExitStack) ... ok
116 test_close (test.test_contextlib_async.TestAsyncExitStack) ... ok
117 test_dont_reraise_RuntimeError (test.test_contextlib_async.TestAsyncExitStack) ... ok
118 test_enter_context (test.test_contextlib_async.TestAsyncExitStack) ... ok
119 test_excessive_nesting (test.test_contextlib_async.TestAsyncExitStack) ... ok
120 test_exit_exception_chaining (test.test_contextlib_async.TestAsyncExitStack) ... ok
121 test_exit_exception_chaining_reference (test.test_contextlib_async.TestAsyncExitStack) ... ok
122 test_exit_exception_chaining_suppress (test.test_contextlib_async.TestAsyncExitStack) ... ok
123 test_exit_exception_non_suppressing (test.test_contextlib_async.TestAsyncExitStack) ... ok
124 test_exit_exception_with_correct_context (test.test_contextlib_async.TestAsyncExitStack) ... ok
125 test_exit_exception_with_existing_context (test.test_contextlib_async.TestAsyncExitStack) ... ok
126 test_exit_raise (test.test_contextlib_async.TestAsyncExitStack) ... ok
127 test_exit_suppress (test.test_contextlib_async.TestAsyncExitStack) ... ok
128 test_instance_bypass (test.test_contextlib_async.TestAsyncExitStack) ... ok
129 test_instance_docs (test.test_contextlib_async.TestAsyncExitStack) ... ok
130 test_no_resources (test.test_contextlib_async.TestAsyncExitStack) ... ok
131 test_pop_all (test.test_contextlib_async.TestAsyncExitStack) ... ok
132 test_push (test.test_contextlib_async.TestAsyncExitStack) ... ok
133 test_async_nullcontext (test.test_contextlib_async.TestAsyncNullcontext) ... ok
135 ----------------------------------------------------------------------
139 py$(PYV): commands[1]> python -m coverage report
140 Name Stmts Miss Cover
141 ---------------------------------------------------
142 contextlib2/__init__.py 353 14 96%
143 test/__init__.py 0 0 100%
144 test/support/__init__.py 3 0 100%
145 test/support/os_helper.py 2 0 100%
146 test/test_contextlib.py 796 21 97%
147 test/test_contextlib_async.py 393 8 98%
148 ---------------------------------------------------
150 py$(PYV): commands[2]> python -m coverage xml
151 Wrote XML report to coverage.xml