File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
755723def test_unorderable_types (testdir ):
756724 testdir .makepyfile (
757725 """
You can’t perform that action at this time.
0 commit comments