diff options
author | Katarzyna Król <38542683+CarycaKatarzyna@users.noreply.github.com> | 2020-05-30 13:10:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 14:10:58 +0300 |
commit | 94c7b8b47cd6b5b14f463731e473929b42881073 (patch) | |
tree | a13643d2a3ed7edeaffd2ef245d62f0f0e4e083f /src/_pytest/nodes.py | |
parent | e3190604efbb97608b0acb6f9b9cf44691a9e851 (diff) | |
download | pytest-94c7b8b47cd6b5b14f463731e473929b42881073.tar.gz |
Issue 1316 - longrepr is a string when pytrace=False (#7100)
Diffstat (limited to 'src/_pytest/nodes.py')
-rw-r--r-- | src/_pytest/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index 2ed250610..4a79bc861 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -337,7 +337,7 @@ class Node(metaclass=NodeMeta): excinfo = ExceptionInfo(excinfo.value.excinfo) if isinstance(excinfo.value, fail.Exception): if not excinfo.value.pytrace: - return str(excinfo.value) + style = "value" if isinstance(excinfo.value, FixtureLookupError): return excinfo.value.formatrepr() if self.config.getoption("fulltrace", False): |