diff options
author | Christian Heimes <cheimes@redhat.com> | 2017-01-03 18:08:05 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2017-01-05 17:35:33 +0100 |
commit | 3387734e6c6d47a756b5e914e7e515d2610a424f (patch) | |
tree | 117beb9b9049f30e18865841f880f8f6ec34e8e9 /ipatests/util.py | |
parent | 0ef55a91ef9c591cee3a7e1ff0e391cdc32423c3 (diff) | |
download | freeipa-3387734e6c6d47a756b5e914e7e515d2610a424f.tar.gz freeipa-3387734e6c6d47a756b5e914e7e515d2610a424f.tar.xz freeipa-3387734e6c6d47a756b5e914e7e515d2610a424f.zip |
Catch ValueError raised by pytest.config.getoption()
pytest.config.getoption() can raise ValueError for unknown options, too.
Reviewed-By: Milan Kubik <mkubik@redhat.com>
Diffstat (limited to 'ipatests/util.py')
-rw-r--r-- | ipatests/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/util.py b/ipatests/util.py index 7b5e317de..932038352 100644 --- a/ipatests/util.py +++ b/ipatests/util.py @@ -337,7 +337,7 @@ def assert_deepequal(expected, got, doc='', stack=tuple()): """ try: pretty_print = pytest.config.getoption("pretty_print") # pylint: disable=no-member - except AttributeError: + except (AttributeError, ValueError): pretty_print = False if pretty_print: |