Removed unused ConftestImportFailure.__str__ method
This commit is contained in:
parent
2cb3534679
commit
ef97121d42
|
@ -3,7 +3,6 @@ from __future__ import absolute_import, division, print_function
|
||||||
import argparse
|
import argparse
|
||||||
import inspect
|
import inspect
|
||||||
import shlex
|
import shlex
|
||||||
import traceback
|
|
||||||
import types
|
import types
|
||||||
import warnings
|
import warnings
|
||||||
import copy
|
import copy
|
||||||
|
@ -27,9 +26,6 @@ from .findpaths import determine_setup, exists
|
||||||
hookimpl = HookimplMarker("pytest")
|
hookimpl = HookimplMarker("pytest")
|
||||||
hookspec = HookspecMarker("pytest")
|
hookspec = HookspecMarker("pytest")
|
||||||
|
|
||||||
# pytest startup
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
class ConftestImportFailure(Exception):
|
class ConftestImportFailure(Exception):
|
||||||
def __init__(self, path, excinfo):
|
def __init__(self, path, excinfo):
|
||||||
|
@ -37,12 +33,6 @@ class ConftestImportFailure(Exception):
|
||||||
self.path = path
|
self.path = path
|
||||||
self.excinfo = excinfo
|
self.excinfo = excinfo
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
etype, evalue, etb = self.excinfo
|
|
||||||
formatted = traceback.format_tb(etb)
|
|
||||||
# The level of the tracebacks we want to print is hand crafted :(
|
|
||||||
return repr(evalue) + "\n" + "".join(formatted[2:])
|
|
||||||
|
|
||||||
|
|
||||||
def main(args=None, plugins=None):
|
def main(args=None, plugins=None):
|
||||||
""" return exit code, after performing an in-process test run.
|
""" return exit code, after performing an in-process test run.
|
||||||
|
|
Loading…
Reference in New Issue