Commit 83437db
committed
[None][test] CBTS coverage: attribute inner unittest coverage to its entry
Nested inner pytests spawned by test_unittests_v2 run as pytest-main, so
sitecustomize skipped the CBTS_TEST_ID context switch and their in-process
coverage drained to the empty context. Switch context from CBTS_TEST_ID for
nested inner pytests too, attributing their coverage to the test-db entry
without loading cbts_plugin in the inner pytest.
Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com>1 parent dd70f53 commit 83437db
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments