From ed8ba1c0016d401c2ff34455ed17177d08b762ba Mon Sep 17 00:00:00 2001 From: Piper Merriam Date: Tue, 21 Feb 2017 13:32:38 -0500 Subject: [PATCH] skip deprecation warning test on py27 --- tests/eth-module/test_defaultAccount_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/eth-module/test_defaultAccount_api.py b/tests/eth-module/test_defaultAccount_api.py index 39d969f..572836c 100644 --- a/tests/eth-module/test_defaultAccount_api.py +++ b/tests/eth-module/test_defaultAccount_api.py @@ -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):