diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 1331dc20..1b2edc84 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -45,6 +45,7 @@ import sys import tempfile import traceback import unittest +import __builtin__ import lxml.etree import time @@ -653,7 +654,8 @@ class SystemTestsMixin(object): wait_count = 0 while subprocess.call(['xdotool', 'search', '--name', title], stdout=open(os.path.devnull, 'w'), - stderr=subprocess.STDOUT) == int(show): + stderr=subprocess.STDOUT) == \ + __builtin__.int(show): wait_count += 1 if wait_count > timeout*10: self.fail("Timeout while waiting for {} window to {}".format(