JetBrains / teamcity-messages

Python Unit Test Reporting to TeamCity
https://pypi.python.org/pypi/teamcity-messages
Apache License 2.0
138 stars 81 forks source link

Test results for unittest subtests are formatted incorrectly if the docstring doesn't start with \n #221

Closed throwable-one closed 4 years ago

throwable-one commented 4 years ago
import unittest

class NumbersTest(unittest.TestCase):
    def test_even(self):
        """Test that numbers between 0 and 5 are all even.
        """
        for i in range(0, 6):
            with self.subTest(i=i):
                self.assertEqual(i % 2, 0)

https://youtrack.jetbrains.com/issue/PY-29614