Ensure user_properties is a list#4041
Conversation
src/_pytest/reports.py
Outdated
|
|
||
| #: user properties is a list of tuples (name, value) that holds user | ||
| #: defined properties of the test | ||
| if user_properties is None: |
There was a problem hiding this comment.
I think we can make this more succinct:
user_properties = [] if user_properties is None else list(user_properties)
nicoddemus
left a comment
There was a problem hiding this comment.
Thanks @Zac-HD, good work! 👍
|
Happy to help! I use pytest all the time, so it's nice to give some code back too 😄 |
Codecov Report
@@ Coverage Diff @@
## master #4041 +/- ##
==========================================
- Coverage 94.45% 94.33% -0.13%
==========================================
Files 109 109
Lines 23788 23792 +4
Branches 2357 2359 +2
==========================================
- Hits 22470 22445 -25
- Misses 1006 1029 +23
- Partials 312 318 +6
Continue to review full report at Codecov.
|
|
@nicoddemus - are these coverage tools ever useful? Because the diff clearly doesn't change coverage at all, but one tool has it going up and the other going down! |
We are still evaluating them... can't really answer that at the moment. 🤔 |
|
Fair enough! My thoughts:
|
|
@nicoddemus - Appveyor failure looks like a job failed to upload coverage data, not failing tests 😌 |
|
Yeah unfortunately this happens somewhat frequently. 😞 |
Definitely, agree with all your points. If |
Closes #4034.