From 76c96782e24f6aa26b4a0dd129208ae9e205f54b Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Mon, 10 Aug 2020 12:58:57 -0600 Subject: [PATCH] fix disable-bls default value --- tests/core/pyspec/eth2spec/test/conftest.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/conftest.py b/tests/core/pyspec/eth2spec/test/conftest.py index addb31dde..b961ee082 100644 --- a/tests/core/pyspec/eth2spec/test/conftest.py +++ b/tests/core/pyspec/eth2spec/test/conftest.py @@ -31,7 +31,7 @@ def pytest_addoption(parser): help="config: make the pyspec use the specified configuration" ) parser.addoption( - "--disable-bls", action="store_true", + "--disable-bls", action="store_true", default=False, help="bls-default: make tests that are not dependent on BLS run without BLS" ) parser.addoption( @@ -50,11 +50,7 @@ def config(request): @fixture(autouse=True) def bls_default(request): - try: - disable_bls = request.config.getoption("--disable-bls") - except ValueError: - disable_bls = False - + disable_bls = request.config.getoption("--disable-bls") if disable_bls: context.DEFAULT_BLS_ACTIVE = False