diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-25 12:00:52 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-25 12:00:52 (GMT) |
commit | 7ff51bd2b8b8407942e3bab2c9267cc8b95f06be (patch) | |
tree | 309cc779cf34977bf0aec44b944146186ee29598 /Lib/test/test_calendar.py | |
parent | f3ebc9fe3fae3d44da4d0da9764ed7c033115f12 (diff) | |
download | cpython-7ff51bd2b8b8407942e3bab2c9267cc8b95f06be.zip cpython-7ff51bd2b8b8407942e3bab2c9267cc8b95f06be.tar.gz cpython-7ff51bd2b8b8407942e3bab2c9267cc8b95f06be.tar.bz2 |
Issue #28255: calendar.TextCalendar().prmonth() no longer prints a space
at the start of new line after printing a month's calendar. Patch by
Xiang Zhang.
Diffstat (limited to 'Lib/test/test_calendar.py')
-rw-r--r-- | Lib/test/test_calendar.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index 5de3ce8..accf251 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -409,8 +409,7 @@ class OutputTestCase(unittest.TestCase): def test_prmonth(self): with support.captured_stdout() as out: calendar.TextCalendar().prmonth(2004, 1) - output = out.getvalue().strip() - self.assertEqual(output, result_2004_01_text.strip()) + self.assertEqual(out.getvalue(), result_2004_01_text) def test_pryear(self): with support.captured_stdout() as out: |