python >= 3.x, local variable 'lastBanTime' reference bug fixed

pull/716/head
sebres 2014-05-06 20:55:41 +02:00
parent a4837da899
commit 7d17fb5c6c
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ class BanTimeIncr(unittest.TestCase):
restored_tickets[0].setRestored(True)
self.assertTrue(restored_tickets[0].getRestored())
# increase ban multiple times:
lastBanTime = 20
for i in xrange(10):
ticket.setTime(stime + lastBanTime + 5)
banTime = a.incrBanTime(ticket)