Skip to content
Snippets Groups Projects
Commit 2a883bbb authored by Luca Greco's avatar Luca Greco
Browse files

Bug 1816989 - Remove unnecessary python import dirs tweaks from webextensions...

Bug 1816989 - Remove unnecessary python import dirs tweaks from webextensions python tests. r=willdurand

It seems that the changes introduced in python 3.3 (see https://peps.python.org/pep-0420/) made the previous
workaround not needed anymore.

Depends on D169964

Differential Revision: https://phabricator.services.mozilla.com/D170080
parent fb596027
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,8 @@ To add a new test file to this test suite:
`helpers` module does also enable the code coverage if the environment variable
is detected):
```
# Import test helpers module.
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
sys.path.append(OUR_DIR)
import helpers
import helpers # Import test helpers module.
...
helpers.setup()
```
......
......@@ -2,17 +2,9 @@
# 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/.
import sys
import mozpack.path as mozpath
import helpers # Import test helpers module.
import mozunit
# Import test helpers module.
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
sys.path.append(OUR_DIR)
import helpers
helpers.setup()
from GenerateWebIDLBindings import load_and_parse_JSONSchema
......
......@@ -4,19 +4,12 @@
import json
import os
import sys
from textwrap import dedent
import mozpack.path as mozpath
import helpers # Import test helpers module.
import mozunit
import pytest
# Import test helpers module.
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
sys.path.append(OUR_DIR)
import helpers
helpers.setup()
from GenerateWebIDLBindings import APIEvent, APIFunction, APINamespace, APIType, Schemas
......
......@@ -3,19 +3,12 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import sys
import types
from textwrap import dedent
import mozpack.path as mozpath
import helpers # Import test helpers module.
import mozunit
# Import test helpers module.
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
sys.path.append(OUR_DIR)
import helpers
helpers.setup()
from GenerateWebIDLBindings import Schemas
......
......@@ -2,18 +2,11 @@
# 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/.
import sys
from textwrap import dedent
import mozpack.path as mozpath
import helpers # Import test helpers module.
import mozunit
# Import test helpers module.
OUR_DIR = mozpath.abspath(mozpath.dirname(__file__))
sys.path.append(OUR_DIR)
import helpers
helpers.setup()
from GenerateWebIDLBindings import (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment