@@ -37,9 +37,10 @@ import sys
3737
3838logger = logging.getLogger(__name__)
3939
40−# backwards compatible alias for Python 3
41−if sys.version > '3':
42− xrange = range
40+# from __future__ import range
41+# (python3's range, is same as python2's xrange)
42+if sys.version_info < (3,):
43+ range = xrange
4344
4445
4546class NotificationsBase(UnityTestCase):
@@ -304,7 +305,7 @@ class InteractiveNotificationBase(NotificationsBase):
304305 if self._notify_proc is None:
305306 raise AssertionError("No interactive notification was created.")
306307
307− for i in xrange(timeout):
308+ for i in range(timeout):
308309 self._notify_proc.poll()
309310 if self._notify_proc.returncode is not None:
310311 output = self._notify_proc.communicate()