Skip to content

Wrapper for the 'which' module - #128

Merged
leouieda merged 1 commit into
masterfrom
which
Feb 14, 2018
Merged

leouieda merged 1 commit into
masterfrom
which

Conversation

@leouieda

Copy link
Copy Markdown
Member

Basic wrapper that only defines a single alias for the -G option
(download the file).

Fixes #92

Basic wrapper that only defines a single alias for the -G option
(download the file).

Fixes #92
Comment thread gmt/modules.py
lib.call_module('which', arg_str)
path = tmpfile.read().strip()
if not path:
raise FileNotFoundError("File '{}' not found.".format(fname))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'FileNotFoundError'

Comment thread gmt/tests/test_which.py
def test_which_fails():
"which should fail with a FileNotFoundError"
bogus_file = unique_name()
with pytest.raises(FileNotFoundError):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F821 undefined name 'FileNotFoundError'

@leouieda
leouieda merged commit 5451c0f into master Feb 14, 2018
@leouieda
leouieda deleted the which branch February 14, 2018 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants