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 tempfile
|
||||||
import traceback
|
import traceback
|
||||||
import unittest
|
import unittest
|
||||||
|
import __builtin__
|
||||||
|
|
||||||
import lxml.etree
|
import lxml.etree
|
||||||
import time
|
import time
|
||||||
@ -653,7 +654,8 @@ class SystemTestsMixin(object):
|
|||||||
wait_count = 0
|
wait_count = 0
|
||||||
while subprocess.call(['xdotool', 'search', '--name', title],
|
while subprocess.call(['xdotool', 'search', '--name', title],
|
||||||
stdout=open(os.path.devnull, 'w'),
|
stdout=open(os.path.devnull, 'w'),
|
||||||
stderr=subprocess.STDOUT) == int(show):
|
stderr=subprocess.STDOUT) == \
|
||||||
|
__builtin__.int(show):
|
||||||
wait_count += 1
|
wait_count += 1
|
||||||
if wait_count > timeout*10:
|
if wait_count > timeout*10:
|
||||||
self.fail("Timeout while waiting for {} window to {}".format(
|
self.fail("Timeout while waiting for {} window to {}".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user