Skip to content

Commit

Permalink
rm test_unittest_not_shown_in_traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 30, 2020
1 parent 9b5f8a7 commit 09146fb
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions testing/test_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,38 +720,6 @@ def _post_teardown(self):
)


def test_unittest_not_shown_in_traceback(testdir: "Testdir") -> None:
p1 = testdir.makepyfile(
"""
import unittest
class t(unittest.TestCase):
def test_hello(self):
x = 3
self.assertEqual(x, 4)
"""
)
result = testdir.runpytest(p1)
result.stdout.fnmatch_lines(
[
"=*= FAILURES =*=",
"_*_ t.test_hello _*_",
"",
"self = <test_unittest_not_shown_in_traceback.t testMethod=test_hello>",
"",
" def test_hello(self):",
" x = 3",
"> self.assertEqual(x, 4)",
"E AssertionError: 3 != 4",
"",
"test_unittest_not_shown_in_traceback.py:5: AssertionError: 3 != 4",
"=*= short test summary info =*=",
"FAILED test_unittest_not_shown_in_traceback.py:5::t::test_hello - AssertionError: 3 != 4",
"=*= 1 failed in *s =*=",
],
consecutive=True,
)


def test_unorderable_types(testdir):
testdir.makepyfile(
"""
Expand Down

0 comments on commit 09146fb

Please sign in to comment.