python3 fix

This commit is contained in:
Joffrey F 2015-01-02 15:31:09 -08:00
parent 1b63b657a1
commit 59fed5fc8a

View file

@ -447,7 +447,7 @@ class AccessAttemptTest(TestCase):
# before getting locked out.
# FIXME: I tried making sure every request in only processed once but
# there seems to be an issue with django reusing request objects.
for i in range(0, config.FAILURE_LIMIT / 2):
for i in range(0, int(config.FAILURE_LIMIT / 2)):
response = self._login()
# Check if we are in the same login page
self.assertContains(response, LOGIN_FORM_KEY)