From c4fdcca53ec83a63c2f52f022bf7b49c27baa2b0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 30 Nov 2020 20:56:59 +0100 Subject: [PATCH] rm test_unittest_not_shown_in_traceback --- testing/test_unittest.py | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/testing/test_unittest.py b/testing/test_unittest.py index 3139b8ee3b1..a72ad2c2e06 100644 --- a/testing/test_unittest.py +++ b/testing/test_unittest.py @@ -719,38 +719,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 = ", - "", - " 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( """