-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove crashtest #382
Remove crashtest #382
Conversation
bef5ac1
to
ae2ef78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how strongly you feel about this but I'd personally change cls.__name__
to type(cls)
, makes the dunder chaos a bit more bearable :v
53d613b
to
cc69aa8
Compare
cc69aa8
to
9742cfa
Compare
9742cfa
to
0948c7a
Compare
0948c7a
to
f12a0c5
Compare
return self._file_content | ||
|
||
def __hash__(self) -> int: | ||
return reduce(operator.xor, map(hash, self._key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simply return hash(self._key)
was what I had intended, apologies if not clear
this in general is a better hash eg hash((1, 2))
is not the same as hash((2, 1))
; and also it is just simpler
crashtest
introduced a burden of additional dependency, that wasn't maintained. This PR moves some Exception inspection logic fromcrashtest
intocleo
and removescrashtest
as a dependency.