Ran
|
Files
58
|
Run time
3s
|
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.
6079 of 7185 relevant lines covered (84.61%)
0.85 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|