Removed unused ConftestImportFailure.__str__ method

This commit is contained in:
Bruno Oliveira 2018-10-12 10:57:13 -03:00
parent 2cb3534679
commit ef97121d42
1 changed files with 0 additions and 10 deletions

View File

@ -3,7 +3,6 @@ from __future__ import absolute_import, division, print_function
import argparse
import inspect
import shlex
import traceback
import types
import warnings
import copy
@ -27,9 +26,6 @@ from .findpaths import determine_setup, exists
hookimpl = HookimplMarker("pytest")
hookspec = HookspecMarker("pytest")
# pytest startup
#
class ConftestImportFailure(Exception):
def __init__(self, path, excinfo):
@ -37,12 +33,6 @@ class ConftestImportFailure(Exception):
self.path = path
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):
""" return exit code, after performing an in-process test run.