Skip to content

Commit

Permalink
Fix unit test failure in 32-bit Python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeranda committed Nov 12, 2014
1 parent 98dfc44 commit 3264922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_demjson.py
Expand Up @@ -1385,7 +1385,7 @@ def testStatsIntegers(self):
self.assertEqual( self.decode_stats( alljson ).num_ints_long, len(nxls) )

n53s = [-9007199254740992,-9007199254740991, 9007199254740991,9007199254740992]# -9007199254740991..9007199254740991
self.assertEqual( self.decode_stats( repr(n53s) ).num_ints_53bit, 2 )
self.assertEqual( self.decode_stats( repr(n53s).replace('L','') ).num_ints_53bit, 2 )

def testStatsFloats(self):
self.assertEqual( self.decode_stats( 'true' ).num_floats, 0 )
Expand Down

0 comments on commit 3264922

Please sign in to comment.