Skip to content

Commit a49ffc3

Browse files
author
Justin Iso
committed
update tests for python3
1 parent ed4a7bf commit a49ffc3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

polling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Polling module containing all exceptions and helpers used for the polling function"""
22

3-
__version__ = '0.2.0'
3+
__version__ = '0.3.0'
44

55
import time
66
try:

tests/test_polling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_timeout_exception(self, patch_sleep, patch_time):
5959
# Since the timeout is < 0, the first iteration of polling should raise the error if max timeout < 0
6060
try:
6161
polling.poll(lambda: False, step=10, timeout=-1)
62-
except polling.TimeoutException, e:
62+
except polling.TimeoutException as e:
6363
assert e.values.qsize() == 1, 'There should have been 1 value pushed to the queue of values'
6464
assert e.last is False, 'The last value was incorrect'
6565
else:
@@ -76,7 +76,7 @@ def test_max_call_exception(self):
7676
tries = 100
7777
try:
7878
polling.poll(lambda: False, step=0, max_tries=tries)
79-
except polling.MaxCallException, e:
79+
except polling.MaxCallException as e:
8080
assert e.values.qsize() == tries, 'Poll function called the incorrect number of times'
8181
assert e.last is False, 'The last value was incorrect'
8282
else:

0 commit comments

Comments
 (0)