Skip to content

Commit

Permalink
Merge pull request #9874 from astrofrog/fix-test-missing-file
Browse files Browse the repository at this point in the history
Test exception catching in test_missing_file
  • Loading branch information
pllim authored Jan 21, 2020
2 parents 44379c1 + 3745f3c commit f468626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions astropy/io/ascii/tests/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ def test_extra_data_col2(fast_reader):
ascii.read('data/simple5.txt', delimiter='|', fast_reader=fast_reader)


@raises(OSError)
def test_missing_file():
ascii.read('does_not_exist')
with pytest.raises(OSError):
ascii.read('does_not_exist')


@pytest.mark.parametrize('fast_reader', [True, False, 'force'])
Expand Down
4 changes: 2 additions & 2 deletions astropy/visualization/wcsaxes/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def draw(self, renderer, inframe=False):
# xlabel). While these are meant to be a single positional argument,
# Matplotlib internally sometimes specifies e.g. set_xlabel(xlabel=...).

def set_xlabel(self, xlabel=None, labelpad=1, **kwargs):
def set_xlabel(self, xlabel=None, labelpad=1, loc=None, **kwargs):
if xlabel is None:
xlabel = kwargs.pop('label', None)
if xlabel is None:
Expand All @@ -474,7 +474,7 @@ def set_xlabel(self, xlabel=None, labelpad=1, **kwargs):
coord.set_axislabel(xlabel, minpad=labelpad, **kwargs)
break

def set_ylabel(self, ylabel=None, labelpad=1, **kwargs):
def set_ylabel(self, ylabel=None, labelpad=1, loc=None, **kwargs):
if ylabel is None:
ylabel = kwargs.pop('label', None)
if ylabel is None:
Expand Down

0 comments on commit f468626

Please sign in to comment.