Skip to content

Commit 1be055d

Browse files
committed
Minor adjustments from updated dependencies
1 parent 921c70e commit 1be055d

13 files changed

+12
-24
lines changed

tests/core/pm-module/conftest.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
from pytest_ethereum.deployer import (
2525
Deployer,
2626
)
27-
from pytest_ethereum.plugins import (
28-
twig_manifest,
29-
)
3027

3128
from web3 import Web3
3229
from web3.pm import (
@@ -173,7 +170,7 @@ def sol_registry(w3):
173170

174171
def vy_registry(w3):
175172
registry_path = ASSETS_DIR / "vyper_registry"
176-
manifest = twig_manifest(registry_path, "registry", "1.0.0")
173+
manifest = json.loads((registry_path / "1.0.0.json").read_text().rstrip('\n'))
177174
registry_package = Package(manifest, w3)
178175
registry_deployer = Deployer(registry_package)
179176
deployed_registry_package = registry_deployer.deploy("registry")

tests/core/pm-module/test_ens_integration.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ def bytes32(val):
2626
return result.rjust(32, b'\0')
2727

2828

29-
pytest_plugins = ["pytest_ethereum.plugins"]
30-
31-
3229
@pytest.fixture
33-
def ens_setup(solc_deployer):
30+
def ens_setup(deployer):
3431
# todo: move to module level once ethpm alpha stable
3532
ENS_MANIFEST = ASSETS_DIR / 'ens' / '1.0.1.json'
36-
ens_deployer = solc_deployer(ENS_MANIFEST)
33+
ens_deployer = deployer(ENS_MANIFEST)
3734
w3 = ens_deployer.package.w3
3835

3936
# ** Set up ENS contracts **

tests/core/providers/test_websocket_provider.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
Thread,
88
)
99

10+
import websockets
11+
1012
from tests.utils import (
1113
wait_for_ws,
1214
)
13-
import websockets
14-
1515
from web3 import Web3
1616
from web3.exceptions import (
1717
ValidationError,

tests/generate_go_ethereum_fixture.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
to_text,
2222
to_wei,
2323
)
24+
2425
from tests.utils import (
2526
get_open_port,
2627
)
27-
2828
from web3 import Web3
2929
from web3._utils.module_testing.emitter_contract import (
3030
EMITTER_ABI,

tests/integration/generate_fixtures/go_ethereum.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
is_dict,
1010
is_same_address,
1111
)
12+
13+
import common
1214
from tests.utils import (
1315
get_open_port,
1416
)
15-
16-
import common
1717
from web3 import Web3
1818
from web3._utils.module_testing.emitter_contract import (
1919
EMITTER_ABI,

tests/integration/generate_fixtures/parity.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from eth_utils import (
1010
to_text,
1111
)
12-
from tests.utils import (
13-
get_open_port,
14-
)
1512

1613
import common
1714
import go_ethereum
15+
from tests.utils import (
16+
get_open_port,
17+
)
1818
from web3 import Web3
1919
from web3._utils.toolz import (
2020
merge,

tests/integration/go_ethereum/test_goethereum_http.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from tests.utils import (
44
get_open_port,
55
)
6-
76
from web3 import Web3
87

98
from .common import (

tests/integration/go_ethereum/test_goethereum_ipc.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from tests.utils import (
66
get_open_port,
77
)
8-
98
from web3 import Web3
109

1110
from .common import (

tests/integration/go_ethereum/test_goethereum_ws.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
get_open_port,
88
wait_for_ws,
99
)
10-
1110
from web3 import Web3
1211

1312
from .common import (

tests/integration/parity/test_parity_http.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from tests.utils import (
88
get_open_port,
99
)
10-
1110
from web3 import Web3
1211
from web3._utils.module_testing import (
1312
NetModuleTest,

tests/integration/parity/test_parity_ipc.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from tests.integration.parity.utils import (
66
wait_for_socket,
77
)
8-
98
from web3 import Web3
109
from web3._utils.module_testing import (
1110
NetModuleTest,

tests/integration/parity/test_parity_ws.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
get_open_port,
99
wait_for_ws,
1010
)
11-
1211
from web3 import Web3
1312
from web3._utils.module_testing import (
1413
NetModuleTest,

web3/pm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def set_registry(self, address: Address) -> None:
419419
self.registry = VyperReferenceRegistry(canonical_address, self.web3)
420420
elif is_ens_name(address):
421421
self._validate_set_ens()
422-
addr_lookup = self.web3.ens.address(address, guess_tld=False)
422+
addr_lookup = self.web3.ens.address(address)
423423
if not addr_lookup:
424424
raise NameNotFound(
425425
"No address found after ENS lookup for name: {0}.".format(address)

0 commit comments

Comments
 (0)