[WIP] TEST: junitxml: write_captured_output: assert for flakiness#5959
[WIP] TEST: junitxml: write_captured_output: assert for flakiness#5959blueyed wants to merge 3 commits intopytest-dev:featuresfrom
Conversation
|
|
||
| # XXX: flaky in test suite, trying to figure out why. | ||
| assert content, repr([content, content_log, content_err]) | ||
| if content: |
There was a problem hiding this comment.
@nicoddemus
Any idea why this might be Falsy during tests?
Does this happen during failures of outer tests then only?
Does it make sense to cover this branch, or should we either assert it here then always (probably a bad idea since it is covered sometimes), or just ignore it for coverage (# pragma: no branch)?
There was a problem hiding this comment.
Not sure, do you have an example failure?
|
(@blueyed please use |
|
@nicoddemus |
|
Yeah I've noticed. I did not notice though it coming from junitxml, but I've often seen flaky coverage in capture.py: |
I assume that is only the case before all jobs have finished then? |
No description provided.