Ran
|
Jobs
5
|
Files
62
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
travis-ci
Quickstart _infer_binary_operation to raise errors that occur during startup. Since https://github.com/PyCQA/astroid/commit/3e2721391, is_subtype and is_supertype raise exceptions when they can't find a relationship between types. This is caught by the callers of _infer_binary_operation. However, the error is only thrown after the generator return by _infer_binary_operation is started. Prior to this patch, the generator is only started inside the else clause of: try: results = _infer_binary_operation(lhs, rhs, self, context, _get_binop_flow) except exceptions._NonDeducibleTypeHierarchy: yield util.Uninferable else: for result in results: yield result To address this, the quickstart decorator pulls the first value from the generator when it's called, and then buffers that first result until it is needed by the later iteration.
7 of 7 new or added lines in 1 file covered. (100.0%)
6479 of 7249 relevant lines covered (89.38%)
4.26 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 563.1 (TOXENV=py27) | 58 |
84.61 |
Travis Job 563.1 | |
2 | 563.2 (TOXENV=py33) | 58 |
85.55 |
Travis Job 563.2 | |
3 | 563.3 (TOXENV=py34) | 58 |
85.94 |
Travis Job 563.3 | |
4 | 563.4 (TOXENV=py35) | 58 |
86.76 |
Travis Job 563.4 | |
7 | 563.7 (TOXENV=py36) | 58 |
87.4 |
Travis Job 563.7 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|