fix disable-bls default value

This commit is contained in:
Danny Ryan 2020-08-10 12:58:57 -06:00
parent c3ae85387c
commit 76c96782e2
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 2 additions and 6 deletions

View File

@ -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