File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,12 @@ class DataDrivenTestCase(pytest.Item): # type: ignore # inheriting from Any
181
181
# forward vs backward slashes in file paths for Windows vs Linux.
182
182
normalize_output = True
183
183
184
+ # Extra attributes used by some tests.
185
+ lastline = None # type: int
186
+ output_files = None # type: List[Tuple[str, str]] # Path and contents for output files
187
+ deleted_paths = None # type: Dict[int, Set[str]] # Mapping run number -> paths
188
+ triggered = None # type: List[str] # Active triggers (one line per incremental step)
189
+
184
190
def __init__ (self ,
185
191
parent : 'DataSuiteCollector' ,
186
192
suite : 'DataSuite' ,
@@ -252,7 +258,7 @@ def teardown(self) -> None:
252
258
def reportinfo (self ) -> Tuple [str , int , str ]:
253
259
return self .file , self .line , self .name
254
260
255
- def repr_failure (self , excinfo : Any ) -> str :
261
+ def repr_failure (self , excinfo : Any , style : Optional [ Any ] = None ) -> str :
256
262
if excinfo .errisinstance (SystemExit ):
257
263
# We assume that before doing exit() (which raises SystemExit) we've printed
258
264
# enough context about what happened so that a stack trace is not useful.
You can’t perform that action at this time.
0 commit comments