@@ -820,7 +820,7 @@ def setup(self):
820820 self .obj = self ._getobj ()
821821
822822 def _prunetraceback (self , excinfo ):
823- if hasattr (self , "_obj" ) and not self .config .option . fulltrace :
823+ if hasattr (self , "_obj" ) and not self .config .getoption ( " fulltrace" , False ) :
824824 code = _pytest ._code .Code (get_real_func (self .obj ))
825825 path , firstlineno = code .path , code .firstlineno
826826 traceback = excinfo .traceback
@@ -835,14 +835,14 @@ def _prunetraceback(self, excinfo):
835835 excinfo .traceback = ntraceback .filter ()
836836 # issue364: mark all but first and last frames to
837837 # only show a single-line message for each frame
838- if self .config .option . tbstyle == "auto" :
838+ if self .config .getoption ( " tbstyle" , "auto" ) == "auto" :
839839 if len (excinfo .traceback ) > 2 :
840840 for entry in excinfo .traceback [1 :- 1 ]:
841841 entry .set_repr_style ("short" )
842842
843843 def repr_failure (self , excinfo , outerr = None ):
844844 assert outerr is None , "XXX outerr usage is deprecated"
845- style = self .config .option . tbstyle
845+ style = self .config .getoption ( " tbstyle" , "auto" )
846846 if style == "auto" :
847847 style = "long"
848848 return self ._repr_failure_py (excinfo , style = style )
0 commit comments