Skip to content

Commit 6341094

Browse files
burnout87bsipocz
authored andcommitted
fixing fixture for test_desi
1 parent d533bea commit 6341094

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

astroquery/desi/tests/test_desi.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,10 @@ def patch_get_readable_fileobj(request):
4040
@contextmanager
4141
def get_readable_fileobj_mockreturn(filename, **kwargs):
4242
file_obj = data_path(DATA_FILES['dummy_hdu_list_fits']) # TODO: add images option
43-
encoding = kwargs.get('encoding', None)
4443
f = None
4544
try:
46-
if encoding == 'binary':
47-
f = open(file_obj, 'rb')
48-
yield f
49-
else:
50-
f = open(file_obj, 'rb')
51-
yield f
45+
f = open(file_obj, 'rb')
46+
yield f
5247
finally:
5348
if f is not None:
5449
f.close()

0 commit comments

Comments
 (0)