Ran
|
Files
266
|
Run time
13s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Avoid placing Block instances into a set(), as this requires them to be hashable. Defining Block.__eq__ in 047ff734c causes the default __hash__ implementation to be nullified on Python 3. Since it's non-trivial to define a replacement __hash__ method that's consistent with our __eq__ behaviour (it depends on the equality of lists / dicts, which are themselves unhashable), it's more correct to explicitly define Block as unhashable, bringing the Python 2 behaviour in line with Python 3. The one place where we currently depend on Block being hashable is in constructing the 'dependencies' set for nested blocks. Since we don't actually need the de-duplicating behaviour of set(), we can replace this with a plain list with no ill effects.
12520 of 13483 relevant lines covered (92.86%)
0.93 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|