Skip to content

Commit

Permalink
Merge pull request #7 from wmwv/u/wmwv/DM-9724
Browse files Browse the repository at this point in the history
Wrap test code objid in ints.
  • Loading branch information
danielsf committed Mar 6, 2017
2 parents a2a913d + ea8c952 commit 50a5eaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testCompoundCatalogDBObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class testDbClass23(testStarDB2):
good_rows = []
for chunk in results:
for line in chunk:
ix = line['id']
ix = int(line['id'])
good_rows.append(ix)
self.assertAlmostEqual(line['%s_raJ2000' % db1.objid], self.controlArray['ra'][ix], 10)
self.assertAlmostEqual(line['%s_decJ2000' % db1.objid], self.controlArray['dec'][ix], 10)
Expand Down Expand Up @@ -670,7 +670,7 @@ class testDbClass25(testStarDB2):
good_rows = []
for chunk in results:
for line in chunk:
ix = line['id']
ix = int(line['id'])
good_rows.append(ix)
self.assertAlmostEqual(line['%s_raJ2000' % db1.objid], self.controlArray['ra'][ix], 10)
self.assertAlmostEqual(line['%s_decJ2000' % db1.objid], self.controlArray['dec'][ix], 10)
Expand Down Expand Up @@ -726,7 +726,7 @@ class testDbClass27(testStarDB2):
good_rows = []
for chunk in results:
for line in chunk:
ix = line['id']
ix = int(line['id'])
good_rows.append(ix)
self.assertAlmostEqual(line['%s_raJ2000' % db1.objid], self.controlArray['ra'][ix], 10)
self.assertAlmostEqual(line['%s_decJ2000' % db1.objid], self.controlArray['dec'][ix], 10)
Expand Down

0 comments on commit 50a5eaf

Please sign in to comment.