-
-
Notifications
You must be signed in to change notification settings - Fork 592
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 error in helioviewer if download dir does not exist #2642
Conversation
Hello @vn-ki! Thanks for updating the PR.
Comment last updated on May 29, 2018 at 10:10 Hours UTC |
sunpy/net/tests/test_helioviewer.py
Outdated
instrument='MDI', | ||
detector='MDI', | ||
measurement='continuum', | ||
directory='/') |
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.
Would this be a problem on windows machines?
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.
yeah probably. you could use os.path.sep
but I don't think \
exists on windows either...
sunpy/net/tests/test_helioviewer.py
Outdated
instrument='MDI', | ||
detector='MDI', | ||
measurement='continuum', | ||
directory='directorynotexist') |
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.
can you make this inside a tmp dir so it's not related to the path of this code? pytest has a global tmpdir
fixture, and then this line should be os.path.join('tmpdir', 'directorynotexist')
this is missing a changelog |
No description provided.