Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jun 3, 2021
1 parent e3e880e commit 97cfe11
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/util/src/opentelemetry/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


from traceback import extract_tb
from traceback import format_tb


class AssertNotRaisesMixin:
Expand All @@ -27,9 +27,6 @@ def __enter__(self):
def __exit__(self, type_, value, tb): # pylint: disable=invalid-name
if value is not None and type_ in self._exception_types:

from ipdb import set_trace
set_trace()

self._test_case.fail(
"Unexpected exception was raised:\n{}".format(
"\n".join(format_tb(tb))
Expand All @@ -47,3 +44,4 @@ def __init__(self, *args, **kwargs):

super().__init__(*args, **kwargs)
# pylint: disable=invalid-name
self.assertNotRaises = self._AssertNotRaises(self)

0 comments on commit 97cfe11

Please sign in to comment.