Skip to content

Commit 09146fb

Browse files
committed
rm test_unittest_not_shown_in_traceback
1 parent 9b5f8a7 commit 09146fb

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

testing/test_unittest.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -720,38 +720,6 @@ def _post_teardown(self):
720720
)
721721

722722

723-
def test_unittest_not_shown_in_traceback(testdir: "Testdir") -> None:
724-
p1 = testdir.makepyfile(
725-
"""
726-
import unittest
727-
class t(unittest.TestCase):
728-
def test_hello(self):
729-
x = 3
730-
self.assertEqual(x, 4)
731-
"""
732-
)
733-
result = testdir.runpytest(p1)
734-
result.stdout.fnmatch_lines(
735-
[
736-
"=*= FAILURES =*=",
737-
"_*_ t.test_hello _*_",
738-
"",
739-
"self = <test_unittest_not_shown_in_traceback.t testMethod=test_hello>",
740-
"",
741-
" def test_hello(self):",
742-
" x = 3",
743-
"> self.assertEqual(x, 4)",
744-
"E AssertionError: 3 != 4",
745-
"",
746-
"test_unittest_not_shown_in_traceback.py:5: AssertionError: 3 != 4",
747-
"=*= short test summary info =*=",
748-
"FAILED test_unittest_not_shown_in_traceback.py:5::t::test_hello - AssertionError: 3 != 4",
749-
"=*= 1 failed in *s =*=",
750-
],
751-
consecutive=True,
752-
)
753-
754-
755723
def test_unorderable_types(testdir):
756724
testdir.makepyfile(
757725
"""

0 commit comments

Comments
 (0)