Fix pyflakes errors
This commit is contained in:
parent
29738c9087
commit
acff63467d
@ -22,7 +22,6 @@ from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
import unittest
|
||||
import subprocess
|
||||
from contextlib import contextmanager
|
||||
@ -38,7 +37,7 @@ bus = dbus.SessionBus()
|
||||
class UITestCase(unittest.TestCase):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
unittest.TestCase(*args, **kwargs)
|
||||
unittest.TestCase(self, *args, **kwargs)
|
||||
|
||||
self.bundle_id = None
|
||||
|
||||
@ -66,7 +65,7 @@ class UITestCase(unittest.TestCase):
|
||||
|
||||
@contextmanager
|
||||
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])
|
||||
else:
|
||||
print "No bundle_id specified."
|
||||
|
Loading…
Reference in New Issue
Block a user