~dandrader/unity8/multiInstanceApp

« back to all changes in this revision

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

  • Committer: Dimitri John Ledkov
  • Date: 2014-02-22 00:12:49 UTC
  • mfrom: (519.2.7 py3_update)
  • mto: This revision was merged to the branch mainline in revision 736.
  • Revision ID: dimitri.ledkov@canonical.com-20140222001249-cysi0p4hjtz2sl6s
Ship python3 autopilot modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import logging
34
34
import signal
35
35
import subprocess
 
36
import sys
36
37
 
37
38
logger = logging.getLogger(__name__)
38
39
 
 
40
# backwards compatible alias for Python 3
 
41
if sys.version > '3':
 
42
    xrange = range
 
43
 
39
44
 
40
45
class NotificationsBase(UnityTestCase):
41
46
    """Base class for all notification tests that provides helper methods."""
261
266
            stdout=subprocess.PIPE,
262
267
            stderr=subprocess.PIPE,
263
268
            close_fds=True,
 
269
            universal_newlines=True,
264
270
        )
265
271
 
266
272
        self.addCleanup(self._tidy_up_script_process)