diff options
Diffstat (limited to 'dev/tests.py')
-rw-r--r-- | dev/tests.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev/tests.py b/dev/tests.py index a065c38..101c691 100644 --- a/dev/tests.py +++ b/dev/tests.py @@ -4,6 +4,7 @@ from __future__ import unicode_literals, division, absolute_import, print_functi import unittest import re import sys +import warnings from . import requires_oscrypto from ._import import _preload @@ -17,6 +18,19 @@ else: from io import StringIO +run_args = [ + { + 'name': 'regex', + 'kwarg': 'matcher', + }, + { + 'name': 'repeat_count', + 'kwarg': 'repeat', + 'cast': 'int', + }, +] + + def run(matcher=None, repeat=1, ci=False): """ Runs the tests @@ -37,6 +51,8 @@ def run(matcher=None, repeat=1, ci=False): _preload(requires_oscrypto, not ci) + warnings.filterwarnings("error") + loader = unittest.TestLoader() # We have to manually track the list of applicable tests because for # some reason with Python 3.4 on Windows, the tests in a suite are replaced |