Bug 1598367 : using py2, py3 compatible maximum integer value through six r=whimboo,marionette-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D54169

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Rishi Gupta 2019-11-22 08:33:01 +00:00
Родитель de3e9b1cdd
Коммит f2aa28e1a2
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -29,7 +29,7 @@ from marionette_driver.marionette import Marionette
from moztest.adapters.unit import StructuredTestResult, StructuredTestRunner
from moztest.results import TestResult, TestResultCollection, relevant_line
from six import reraise
from six import reraise, MAXSIZE
from . import serve
@ -329,7 +329,7 @@ class BaseMarionetteArguments(ArgumentParser):
help='run tests in a random order')
self.add_argument('--shuffle-seed',
type=int,
default=random.randint(0, sys.maxint),
default=random.randint(0, MAXSIZE),
help='Use given seed to shuffle tests')
self.add_argument('--total-chunks',
type=int,
@ -524,7 +524,7 @@ class BaseMarionetteTestRunner(object):
run_until_failure=None,
testvars=None,
symbols_path=None,
shuffle=False, shuffle_seed=random.randint(0, sys.maxint), this_chunk=1,
shuffle=False, shuffle_seed=random.randint(0, MAXSIZE), this_chunk=1,
total_chunks=1,
server_root=None, gecko_log=None, result_callbacks=None,
prefs=None, test_tags=None,