Skip to content

Commit

Permalink
fix B017 and PLE0302
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com>
  • Loading branch information
nstarman committed May 3, 2023
1 parent 2ea8baf commit a145b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astropy/nddata/tests/test_nddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self):
def shape(self):
pass

def __getitem__(self):
def __getitem__(self, key):
pass

def __array__(self):
Expand Down
2 changes: 1 addition & 1 deletion astropy/uncertainty/tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def test_reprs():
],
)
def test_wrong_kw_fails(func, kws):
with pytest.raises(Exception):
with pytest.raises(TypeError, match="missing 1 required"):
kw_temp = kws.copy()
kw_temp["n_sample"] = 100 # note the missing "s"
assert func(**kw_temp).n_samples == 100
Expand Down

0 comments on commit a145b3f

Please sign in to comment.