Bug 1559975 - Add future imports to testing/remotecppunittests.py and testing/runcppunittests.py and remove them from py2 exclusion list r=ahal
☠☠ backed out by 18f3d786c289 ☠ ☠
authorMarco Castelluccio <mcastelluccio@mozilla.com>
Wed, 26 Jun 2019 15:31:24 +0000
changeset 543045 2309aac6cea38ea30ecc5a89eb2049b59d2ac174
parent 543044 bf5a6d853abdbf85581da1088eb6a3fe6adbeb0f
child 543046 febac17e5654327a7ce643dba95ab7d2e4265687
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1559975
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1559975 - Add future imports to testing/remotecppunittests.py and testing/runcppunittests.py and remove them from py2 exclusion list r=ahal Differential Revision: https://phabricator.services.mozilla.com/D35246
testing/remotecppunittests.py
testing/runcppunittests.py
tools/lint/py2.yml
--- a/testing/remotecppunittests.py
+++ b/testing/remotecppunittests.py
@@ -1,14 +1,15 @@
 #!/usr/bin/env python
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
+from __future__ import absolute_import, print_function
 import os
 import sys
 import subprocess
 from zipfile import ZipFile
 import runcppunittests as cppunittests
 import mozcrash
 import mozfile
 import mozinfo
--- a/testing/runcppunittests.py
+++ b/testing/runcppunittests.py
@@ -1,15 +1,15 @@
 #!/usr/bin/env python
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-from __future__ import with_statement
+from __future__ import absolute_import, print_function, with_statement
 import sys
 import os
 from optparse import OptionParser
 from os import environ as env
 import manifestparser
 import mozprocess
 import mozinfo
 import mozcrash
--- a/tools/lint/py2.yml
+++ b/tools/lint/py2.yml
@@ -34,18 +34,16 @@ py2:
         - taskcluster/docker/funsize-update-generator
         - testing/awsy
         - testing/firefox-ui
         - testing/geckodriver
         - testing/gtest
         - testing/mochitest
         - testing/mozharness
         - testing/raptor
-        - testing/remotecppunittests.py
-        - testing/runcppunittests.py
         - testing/runtimes
         - testing/tools
         - testing/tps
         - testing/web-platform
         - toolkit
         - tools/docs
         - tools/jprof/split-profile.py
         - tools/lint