Skip to content

Testslide runner not playing well with unittest.subtests #301

@deathowl

Description

@deathowl
In [1]: from unittest import TestCase

In [2]: class Repro(TestCase):
   ...:     def test_repro(self):
   ...:         for x in range(0,10):
   ...:             with self.subTest(f"{x}") as st:
   ...:                 if x == 5:
   ...:                     raise unittest.SkipTest("skipped")
   ...:                 self.assertTrue(True)

testslide runner marks the entire testclass skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions