-
Notifications
You must be signed in to change notification settings - Fork 4
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
C version of router compressor with bit field #80
C version of router compressor with bit field #80
Conversation
…ock of the code. variables renamed. etc. lots of dcumentation. etc etce tc
Pull Request Test Coverage Report for Build 761
💛 - Coveralls |
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.
The testing is well broken and this branch might need to have master
merged to it too.
unittests/test_exec_finder.py
Outdated
ef.get_executable_path("abc.aplx") | ||
return False | ||
except Exception: | ||
return True |
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.
This is not how you assert that an exception happened!
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.
fixed
unittests/test_exec_finder.py
Outdated
ef.get_executable_path("abc.aplx") | ||
return False | ||
except Exception: | ||
return True |
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.
This is not how you assert that an exception happened!
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.
fixed
unittests/test_progress_bar.py
Outdated
p = pbclass(2, None) | ||
with pytest.raises(Exception): |
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.
This is (was) how you assert that an exception is thrown.
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.
reflected
The early exploding executable finder is reasonable. I look forward to approving this PR once the testing is meaningful. |
(Default ordered dicts have gone in via separate PR, #81) |
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.
pending the changes Donal has requests ok by me.
Note this version of DefaultOrderedDict is python2 style only and will fail in python3.8
fixed ready for someone to merge |
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.
DefaultOrderedDict already in master.
my version has the import fix for the collections.abc crap!
executable_finder.py should raise something better than generic exception.
Then test can check for the specific exception and not just pop
added a default ordered dict and made the executable finder explode earlier.