Ran
|
Files
4
|
Run time
0s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/johnyf/astutils/commit/fc359e75e">BUG: define method `Terminal.__hash__` otherwise Python 3 makes `Terminal` unhashable, because the method `Terminal.__eq__` is present [1]. The class `Operator` does not define a method `__eq__`, so its `__hash__` defaults to `id(self)`. Hashability of AST nodes simplifies transformation to `networkx` graphs. This change follows [2]. [1] https://docs.python.org/3.5/reference/datamodel.html#object.__hash__ [2] https://github.com/tulip-control/tulip-control/commit/</a><a class="double-link" href="https://github.com/johnyf/astutils/commit/fb12918d6">fb12918d6</a>
100 of 113 relevant lines covered (88.5%)
0.88 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|