Skip to content

Commit ef97121

Browse files
committed
Removed unused ConftestImportFailure.__str__ method
1 parent 2cb3534 commit ef97121

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/_pytest/config/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import argparse
44
import inspect
55
import shlex
6-
import traceback
76
import types
87
import warnings
98
import copy
@@ -27,22 +26,13 @@
2726
hookimpl = HookimplMarker("pytest")
2827
hookspec = HookspecMarker("pytest")
2928

30-
# pytest startup
31-
#
32-
3329

3430
class ConftestImportFailure(Exception):
3531
def __init__(self, path, excinfo):
3632
Exception.__init__(self, path, excinfo)
3733
self.path = path
3834
self.excinfo = excinfo
3935

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-
4636

4737
def main(args=None, plugins=None):
4838
""" return exit code, after performing an in-process test run.

0 commit comments

Comments
 (0)