mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
skip deprecation warning test on py27
This commit is contained in:
parent
e4ecb842b6
commit
ed8ba1c001
@ -1,5 +1,7 @@
|
||||
import pytest
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def wait_for_first_block(web3, wait_for_block):
|
||||
@ -21,6 +23,7 @@ def test_uses_defaultAccount_when_set(web3, extra_accounts,
|
||||
assert txn['from'] == extra_accounts[2]
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.version_info.major == 2, reason="Doesn't seem to work on py27")
|
||||
def test_raises_warning_and_defaults_to_coinbase_when_not_set(web3, extra_accounts,
|
||||
wait_for_transaction):
|
||||
with pytest.warns(DeprecationWarning):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user