-
Notifications
You must be signed in to change notification settings - Fork 103
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
Fix paths for Boost Python check #332
Conversation
* Update python3 test from python3.5 to python3.6. * Use the PYTHONPATH environment variable to extract the python dir.
Codecov Report
@@ Coverage Diff @@
## master #332 +/- ##
==========================================
+ Coverage 91.26% 91.29% +0.02%
==========================================
Files 67 67
Lines 8005 8005
==========================================
+ Hits 7306 7308 +2
+ Misses 699 697 -2
Continue to review full report at Codecov.
|
@@ -38,4 +38,4 @@ def normalize(s): | |||
|
|||
def _get_checks(**kwargs): | |||
return [BoostCrayGnuPythonTest('1.65.0', '17.08', '2.7', **kwargs), | |||
BoostCrayGnuPythonTest('1.65.0', '17.08', '3.5', **kwargs)] | |||
BoostCrayGnuPythonTest('1.65.0', '17.08', '3.6', **kwargs)] |
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.
I suggest converting the test to the new style.
@@ -1,20 +1,18 @@ | |||
import os |
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 needed.
def normalize(s): | ||
return s.replace('.', '_') | ||
|
||
super().__init__('boost_%s_cray_gnu_%s_python_%s_check' % ( | ||
normalize(boost_version), normalize(cray_gnu_version), | ||
normalize(python_version)), os.path.dirname(__file__), **kwargs) | ||
normalize(python_version))) |
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.
Set the name explicitly, not by passing it to the base class constructor. It may be deprecated in the future.
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.
And btw I don't think that you need to set it at all. The default name should be fine.
Update python3 test from python3.5 to python3.6.
Use the PYTHONPATH environment variable to extract the python dir.