Skip to content

Commit d533bea

Browse files
burnout87bsipocz
authored andcommitted
only using getfixturevalue for test
1 parent 85fbfce commit d533bea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

astroquery/desi/tests/test_desi.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ def get_readable_fileobj_mockreturn(filename, **kwargs):
5353
if f is not None:
5454
f.close()
5555

56-
try:
57-
mp = request.getfixturevalue("monkeypatch")
58-
except AttributeError: # pytest < 3
59-
mp = request.getfuncargvalue("monkeypatch")
56+
mp = request.getfixturevalue("monkeypatch")
6057

6158
mp.setattr(commons, 'get_readable_fileobj',
6259
get_readable_fileobj_mockreturn)

0 commit comments

Comments
 (0)