summaryrefslogtreecommitdiffstats
path: root/ipatests/util.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-01-03 18:08:05 +0100
committerMartin Basti <mbasti@redhat.com>2017-01-05 17:35:33 +0100
commit3387734e6c6d47a756b5e914e7e515d2610a424f (patch)
tree117beb9b9049f30e18865841f880f8f6ec34e8e9 /ipatests/util.py
parent0ef55a91ef9c591cee3a7e1ff0e391cdc32423c3 (diff)
downloadfreeipa-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.py2
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: