Skip to content

Commit

Permalink
placeholder test for maskbit 2**63
Browse files Browse the repository at this point in the history
  • Loading branch information
sbailey committed Sep 28, 2016
1 parent 35d2f66 commit 6581f22
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions py/desiutil/test/test_bitmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ def test_str(self):
self.assertEqual(bitmask[name].bitnum, self.ccdmask[name].bitnum)
self.assertEqual(bitmask[name]._extra, self.ccdmask[name]._extra)

# We actually do want the highest mask bit to be useable but that doesn't
# currently work. Add a unittest as a placeholder for future debugging
@unittest.expectedFailure
def test_highbit(self):
_bitdefs = dict(ccdmask=list())
_bitdefs['ccdmask'].append( ['LOWEST', 0, "bit 0"] )
_bitdefs['ccdmask'].append( ['HIGHEST', 63, "bit 63"] )
mask = BitMask('ccdmask', _bitdefs)
self.assertEqual(mask.names(1), ['LOWEST'])
self.assertEqual(mask.names(2**63), ['HIGHEST'])
# We actually do want the highest mask bit to be useable; that currently
# works under python 3.5 but not 2.7.
# Add a unittest as a placeholder for future debugging
# def test_highbit(self):
# _bitdefs = dict(ccdmask=list())
# _bitdefs['ccdmask'].append( ['LOWEST', 0, "bit 0"] )
# _bitdefs['ccdmask'].append( ['HIGHEST', 63, "bit 63"] )
# mask = BitMask('ccdmask', _bitdefs)
# self.assertEqual(mask.names(1), ['LOWEST'])
# self.assertEqual(mask.names(2**63), ['HIGHEST'])

def test_uint64(self):
_bitdefs = dict(ccdmask=list())
Expand Down

0 comments on commit 6581f22

Please sign in to comment.