Skip to content
Snippets Groups Projects
Commit 4ea2e8c4 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

fix wallet unit test

Limit coverage to python 3.6
parent 8804bf34
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ jobs:
name: run tests
command: |
./cc-test-reporter before-build
tox -e py36,pylint
tox -e py36
./cc-test-reporter after-build --exit-code $?
- deploy:
......
......@@ -262,7 +262,7 @@ class Wallet(object):
# Try to decode as wif
PrivateKey(encwif, prefix=self.prefix)
return encwif
except ValueError:
except (ValueError, AssertionError):
pass
if self.locked():
raise AssertionError()
......
[tox]
envlist = py{27,34,35,36,37},lint,pyflakes
envlist = py{27,34,35,36,37}
skip_missing_interpreters = true
[testenv]
deps =
mock>=2.0.0
pytest
pytest-mock
parameterized
commands =
pytest
[testenv:py36]
deps =
mock>=2.0.0
pytest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment