Skip to content

使用subTest,每条都会输出全循环的内容,请问这个如何解决 #4

Description

@zfz4869

举个例子

def test_add(self):
for i in range(5):
with self.subTest(num=i):
print(i)
self.assertEqual(i,3)

每条都会输出01234,如何加以区分

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions