Use 2^31 - 1 instead of 2^31 to keep inside 32-bit integer (good I'm varying what platforms I work at)

This commit is contained in:
Stein Magnus Jodal 2010-03-13 00:37:34 +01:00
parent 9437db3c38
commit 1729d9e962

View File

@ -214,7 +214,7 @@ class StatusHandlerTest(unittest.TestCase):
def test_status_method_contains_playlist(self):
result = dict(self.h._status_status())
self.assert_('playlist' in result)
self.assert_(int(result['playlist']) in xrange(0, 2**31))
self.assert_(int(result['playlist']) in xrange(0, 2**31 - 1))
def test_status_method_contains_playlistlength(self):
result = dict(self.h._status_status())