~nick-dedekind/unity8/indicators.hint-interval

« back to all changes in this revision

Viewing changes to tests/autopilot/unity8/shell/tests/test_upstart.py

  • Committer: Nick Dedekind
  • Date: 2014-03-07 15:54:57 UTC
  • mfrom: (638.1.118 unity8)
  • Revision ID: nicholas.dedekind@gmail.com-20140307155457-f0s1zu5ll2czt3rq
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
logger = logging.getLogger(__name__)
38
38
 
 
39
# from __future__ import range
 
40
# (python3's range, is same as python2's xrange)
 
41
import sys
 
42
if sys.version_info < (3,):
 
43
    range = xrange
39
44
 
40
45
class UpstartIntegrationTests(UnityTestCase):
41
46
 
52
57
        self.process = subprocess.Popen([get_binary_path()] + self.unity_geometry_args)
53
58
        def ensure_stopped():
54
59
            self.process.terminate()
55
 
            for i in xrange(10):
 
60
            for i in range(10):
56
61
                try:
57
62
                    self._get_status()
58
63
                except OSError: