-
Notifications
You must be signed in to change notification settings - Fork 224
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 the test for GMT_COMPATIBILITY=6 #454
Conversation
Wasnt't this what #432 (comment) was about... Oh well, I think you've documented it better here though. Are you sure about removing the |
You're right. I assumed that the test always passes. |
with Session() as lib: | ||
# revert gmt.conf back to GMT_COMPATIBILITY = 6 | ||
lib.call_module("set", "GMT_COMPATIBILITY 6") |
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.
These lines are not needed, as they only change the gmt.conf in the session directory, which will be deleted after the end()
statement.
# Clean up the global "gmt.conf" in the current directory | ||
assert os.path.exists("gmt.conf") | ||
os.remove("gmt.conf") |
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.
Have to remove the "gmt.conf" in the current directory so that it won't affect other tests.
Description of proposed changes
Clean up the global "gmt.conf" in the current directory, after ending the local session but before beginning the global session.
Fixes #453
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.