Skip to content

Commit

Permalink
Bug 1801836 - Remove no longer necessary 'from __future__' imports un…
Browse files Browse the repository at this point in the history
…der testing/. r=linter-reviewers,webdriver-reviewers,perftest-reviewers,ahal,afinder DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D165399
  • Loading branch information
marco-c committed Dec 23, 2022
1 parent abeb2ef commit f28ce64
Show file tree
Hide file tree
Showing 732 changed files with 1 addition and 1,450 deletions.
2 changes: 0 additions & 2 deletions testing/addtest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, print_function, unicode_literals

import io
import os

Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/awsy/awsy_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# 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

import fnmatch
import glob
import gzip
Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/awsy/parse_about_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

# Firefox about:memory log parser.

from __future__ import absolute_import, print_function

import argparse
import gzip
import json
Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/awsy/process_perf_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# 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, division, print_function

import glob
import json
import math
Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/awsy/test_base_memory_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/awsy/test_memory_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/awsy/webservers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

# mozhttpd web server.

from __future__ import absolute_import, print_function

import argparse
import os
import socket
Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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, unicode_literals

import argparse
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions testing/awsy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

from setuptools import find_packages, setup

PACKAGE_NAME = "awsy"
Expand Down
1 change: 0 additions & 1 deletion testing/condprofile/condprof/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""" Drives an android device.
"""
from __future__ import absolute_import
import os
import posixpath
import tempfile
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""Helper to create tarballs.
"""
from __future__ import absolute_import

import copy
import glob
import os
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"""
Maintains a unique file that lists all artifacts operations.
"""
from __future__ import absolute_import

import json
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/check_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
This module tries to make sure we have all dependencies installed on
all our environments.
"""
from __future__ import absolute_import

import os
import subprocess
import sys
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# This module needs to stay Python 2 and 3 compatible
#
from __future__ import absolute_import

import functools
import os
import shutil
Expand Down
1 change: 0 additions & 1 deletion testing/condprofile/condprof/creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
should work as expected. Each profile tarball comes with a metadata file
that keep track of the Firefox version that was used and the profile age.
"""
from __future__ import absolute_import
import os
import tempfile

Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/customization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import json
import os

Expand Down
1 change: 0 additions & 1 deletion testing/condprofile/condprof/desktop.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# 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
import os
import contextlib

Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""" Helpers to build scenarii
"""
from __future__ import absolute_import

from condprof.util import logger

_SUPPORTED_MOBILE_BROWSERS = "fenix", "gecko", "firefox"
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""" Script that launches profiles creation.
"""
from __future__ import absolute_import

import argparse
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""" Manages a metadata file.
"""
from __future__ import absolute_import

import datetime
import json
import os
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

# patch for https://bugzilla.mozilla.org/show_bug.cgi?id=1655869
# see https://github.com/HDE/arsenic/issues/85
from __future__ import absolute_import

from arsenic.connection import *


Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
"""

from __future__ import absolute_import, division

import sys
import time

Expand Down
1 change: 0 additions & 1 deletion testing/condprofile/condprof/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
""" Script that launches profiles creation.
"""
from __future__ import absolute_import
import os
import shutil
import asyncio
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/scenarii/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

from condprof.scenarii.full import full
from condprof.scenarii.settled import settled
from condprof.scenarii.settled2 import settled2
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/scenarii/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import asyncio
import os
import random
Expand Down
1 change: 0 additions & 1 deletion testing/condprofile/condprof/scenarii/settled.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# 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
import asyncio


Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/scenarii/settled2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import asyncio


Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/scenarii/settled_youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import asyncio


Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/tests/fakegeckodriver.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import absolute_import

import argparse
import json
from http.server import BaseHTTPRequestHandler, HTTPServer
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/tests/test_runner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import asyncio
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/condprof/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# This module needs to stay Python 2 and 3 compatible
#
from __future__ import absolute_import, division, print_function

import contextlib
import os
import platform
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/mach_commands.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# 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

import logging
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions testing/condprofile/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

from setuptools import find_packages, setup

entry_points = """
Expand Down
2 changes: 0 additions & 2 deletions testing/firefox-ui/harness/firefox_ui_harness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

__version__ = "1.4.0"

from . import cli_functional
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
# 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

from firefox_ui_harness.arguments.base import FirefoxUIArguments
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

from marionette_harness import BaseMarionetteArguments


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# 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

from firefox_ui_harness.arguments import FirefoxUIArguments
from firefox_ui_harness.runners import FirefoxUITestRunner
from marionette_harness.runtests import cli as mn_cli
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
# 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

from firefox_ui_harness.runners.base import FirefoxUITestRunner
2 changes: 0 additions & 2 deletions testing/firefox-ui/harness/firefox_ui_harness/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import os

from marionette_harness import BaseMarionetteTestRunner, MarionetteTestCase
Expand Down
2 changes: 0 additions & 2 deletions testing/firefox-ui/harness/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


from __future__ import absolute_import

import os
import re

Expand Down
2 changes: 0 additions & 2 deletions testing/firefox-ui/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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, unicode_literals

import logging
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import os
from functools import reduce

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import time

from marionette_driver import By, Wait, expected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

import time

from marionette_driver import By, Wait, expected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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

from marionette_driver import By, Wait
from marionette_harness import MarionetteTestCase, WindowManagerMixin

Expand Down
Loading

0 comments on commit f28ce64

Please sign in to comment.