Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testslide runner not playing well with unittest.subtests #301

Open
deathowl opened this issue Apr 28, 2021 · 1 comment
Open

Testslide runner not playing well with unittest.subtests #301

deathowl opened this issue Apr 28, 2021 · 1 comment

Comments

@deathowl
Copy link
Member

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.

@fornellas
Copy link
Contributor

Very likely related to #51 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants