Skip to content

Commit

Permalink
Remove todo tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed Mar 9, 2021
1 parent 097364e commit 083745c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
Empty file.
49 changes: 0 additions & 49 deletions src/twisted/trial/test/test_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,21 +1224,6 @@ def test_successResultOfWithException(self):
self.failureException, self.successResultOf, self.raisesException()
)

def test_successResultOfWithFailureHasTraceback(self):
"""
L{SynchronousTestCase.successResultOf} raises a
L{SynchronousTestCase.failureException} that has the original failure
traceback when called with a coroutine with a failure result.
"""
try:
self.successResultOf(self.raisesException())
except self.failureException as e:
self.assertIn(self.failure.getTraceback(), str(e))

test_successResultOfWithFailureHasTraceback.todo = ( # type: ignore[attr-defined]
"Tracebacks aren't preserved by exceptions later wrapped in Failures"
)

def test_failureResultOfWithoutResult(self):
"""
L{SynchronousTestCase.failureResultOf} raises
Expand Down Expand Up @@ -1290,23 +1275,6 @@ def test_failureResultOfWithWrongExceptionOneExpectedException(self):
str(e),
)

def test_failureResultOfWithWrongExceptionOneExpectedExceptionHasTB(self):
"""
L{SynchronousTestCase.failureResultOf} raises
L{SynchronousTestCase.failureException} when called with a coroutine
that raises an exception with a failure type that was not expected, and
the L{SynchronousTestCase.failureException} message contains the
original exception traceback.
"""
try:
self.failureResultOf(self.raisesException(), KeyError)
except self.failureException as e:
self.assertIn(self.failure.getTraceback(), str(e))

test_failureResultOfWithWrongExceptionOneExpectedExceptionHasTB.todo = ( # type: ignore[attr-defined]
"Tracebacks aren't preserved by exceptions later wrapped in Failures"
)

def test_failureResultOfWithWrongExceptionMultiExpectedExceptions(self):
"""
L{SynchronousTestCase.failureResultOf} raises
Expand All @@ -1328,23 +1296,6 @@ def test_failureResultOfWithWrongExceptionMultiExpectedExceptions(self):
str(e),
)

def test_failureResultOfWithWrongExceptionMultiExpectedExceptionsHasTB(self):
"""
L{SynchronousTestCase.failureResultOf} raises
L{SynchronousTestCase.failureException} when called with a coroutine
that raises an exception of a type that was not expected, and the
L{SynchronousTestCase.failureException} message contains the original
exception traceback in the error message.
"""
try:
self.failureResultOf(self.raisesException(), KeyError, IOError)
except self.failureException as e:
self.assertIn(self.failure.getTraceback(), str(e))

test_failureResultOfWithWrongExceptionMultiExpectedExceptionsHasTB.todo = ( # type: ignore[attr-defined]
"Tracebacks aren't preserved by exceptions later wrapped in Failures"
)

def test_successResultOfWithSuccessResult(self):
"""
When passed a coroutine which currently has a result (ie, if converted
Expand Down

0 comments on commit 083745c

Please sign in to comment.