tests: workaround 'int' name being shadowed by module name
qubes.tests.int shadows 'int' type in qubes.tests module. QubesOS/qubes-issues#2241
This commit is contained in:
parent
3f6c96ee39
commit
6d45b97357
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user