Skip to content

Commit c19f188

Browse files
committed
MAINT: addressing minor review comments
1 parent 2823283 commit c19f188

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

astroquery/besancon/tests/test_besancon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def get_readable_fileobj_mockreturn(filename, **kwargs):
6868
with open(data_path('1376235131.430670.resu'), "r" + ('b' if is_binary else '')) as file_obj:
6969
yield file_obj
7070
else:
71-
file_obj = filename
72-
yield file_obj
71+
yield filename
7372

7473
mp = request.getfixturevalue("monkeypatch")
7574

astroquery/cadc/tests/test_cadctap_remote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,13 @@ def test_uploads(self, tmp_path):
300300
# save a few observations on a local file
301301
output_file = Path(tmp_path, 'my_observations.xml')
302302
cadc.exec_sync("SELECT TOP 3 observationID FROM caom2.Observation",
303-
output_file=output_file)#'my_observations.xml')
304-
# assert output_file.exists()
303+
output_file=output_file)
304+
assert output_file.exists()
305305

306306
# now use them to join with the remote table
307307
results = cadc.exec_sync(
308308
"SELECT o.observationID, intent FROM caom2.Observation o JOIN "
309309
"tap_upload.test_upload tu ON o.observationID=tu.observationID",
310-
uploads={'test_upload': output_file})#'my_observations.xml'})
310+
uploads={'test_upload': output_file})
311311

312312
assert len(results) == 3

astroquery/sdss/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ def _parse_result(self, response, verbose=False):
944944
warnings.filterwarnings("ignore", category=AstropyWarning,
945945
message=r'OverflowError converting to IntType in column.*')
946946
arr = Table.read(response.text, format='ascii.csv', comment="#")
947-
for id_column in ['objid', 'specobjid']:
947+
for id_column in ('objid', 'specobjid'):
948948
if id_column in arr.columns:
949949
arr[id_column] = arr[id_column].astype(np.int64)
950950

0 commit comments

Comments
 (0)