mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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)
|
||||
Reference in New Issue
Block a user