File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 3
3
import argparse
4
4
import inspect
5
5
import shlex
6
- import traceback
7
6
import types
8
7
import warnings
9
8
import copy
27
26
hookimpl = HookimplMarker ("pytest" )
28
27
hookspec = HookspecMarker ("pytest" )
29
28
30
- # pytest startup
31
- #
32
-
33
29
34
30
class ConftestImportFailure (Exception ):
35
31
def __init__ (self , path , excinfo ):
36
32
Exception .__init__ (self , path , excinfo )
37
33
self .path = path
38
34
self .excinfo = excinfo
39
35
40
- def __str__ (self ):
41
- etype , evalue , etb = self .excinfo
42
- formatted = traceback .format_tb (etb )
43
- # The level of the tracebacks we want to print is hand crafted :(
44
- return repr (evalue ) + "\n " + "" .join (formatted [2 :])
45
-
46
36
47
37
def main (args = None , plugins = None ):
48
38
""" return exit code, after performing an in-process test run.
You can’t perform that action at this time.
0 commit comments