Fix pyflakes errors

master
Daniel Narvaez 11 years ago
parent 29738c9087
commit acff63467d

@ -22,7 +22,6 @@ from __future__ import absolute_import
import logging import logging
import os import os
import time
import unittest import unittest
import subprocess import subprocess
from contextlib import contextmanager from contextlib import contextmanager
@ -38,7 +37,7 @@ bus = dbus.SessionBus()
class UITestCase(unittest.TestCase): class UITestCase(unittest.TestCase):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
unittest.TestCase(*args, **kwargs) unittest.TestCase(self, *args, **kwargs)
self.bundle_id = None self.bundle_id = None
@ -66,7 +65,7 @@ class UITestCase(unittest.TestCase):
@contextmanager @contextmanager
def run_activity(self): def run_activity(self):
if bundle_id is not None: if self.bundle_id is not None:
process = subprocess.Popen(["sugar-launch", self.bundle_id]) process = subprocess.Popen(["sugar-launch", self.bundle_id])
else: else:
print "No bundle_id specified." print "No bundle_id specified."

Loading…
Cancel
Save