summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_calendar.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-25 12:02:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-25 12:02:36 (GMT)
commitecb90182f59c4929a395759896d1abea4e408f39 (patch)
treee58592342e441945c079ca185ab8f604043d4138 /Lib/test/test_calendar.py
parenta6eba11f866f0575e18398d6fdc2cbd47ccb2495 (diff)
parent7ff51bd2b8b8407942e3bab2c9267cc8b95f06be (diff)
downloadcpython-ecb90182f59c4929a395759896d1abea4e408f39.zip
cpython-ecb90182f59c4929a395759896d1abea4e408f39.tar.gz
cpython-ecb90182f59c4929a395759896d1abea4e408f39.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.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py
index 6c7cdd1..2bc4fee 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: