PY-23785: support unittest2, PY-23846: support dots in subtest names

Leonid's runners updated to support unittest2 and  dots in subtests
This commit is contained in:
Ilya.Kazakevich
2017-04-20 22:38:57 +03:00
parent 3d66278a25
commit b9d17e211d
5 changed files with 116 additions and 8 deletions
@@ -0,0 +1,9 @@
import unittest
class SampleTest(unittest.TestCase):
def test_sample(self):
for i in range(10):
with self.subTest(i=str(i)+'.'+str(i)):
self.assertTrue(i > 1)
@@ -0,0 +1,10 @@
from unittest2 import TestCase
class SampleTest(TestCase):
def test_sample(self):
for i in range(10):
with self.subTest(i=i):
self.assertTrue(i > 3)