summaryrefslogtreecommitdiff
path: root/Lib/test/test_calendar.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2017-02-04 17:37:00 -0800
committerSteve Dower <steve.dower@microsoft.com>2017-02-04 17:37:00 -0800
commita51d84bfb3b7f82b4b4e22c385cc7966378ae5c2 (patch)
treef09060bdd9bc041fc2942698eb7a46ea77b8e0fd /Lib/test/test_calendar.py
parent2af0fb8818763f1942666dae0835baeab65340fc (diff)
parentcd72452eb70eeaed8cd39282a2bad320bc922f41 (diff)
downloadcpython-a51d84bfb3b7f82b4b4e22c385cc7966378ae5c2.tar.gz
Merge from 3.6
Diffstat (limited to 'Lib/test/test_calendar.py')
-rw-r--r--Lib/test/test_calendar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py
index 2bc4feebbd..bd57653ffa 100644
--- a/Lib/test/test_calendar.py
+++ b/Lib/test/test_calendar.py
@@ -404,7 +404,7 @@ class OutputTestCase(unittest.TestCase):
with support.captured_stdout() as out:
week = [(1,0), (2,1), (3,2), (4,3), (5,4), (6,5), (7,6)]
calendar.TextCalendar().prweek(week, 1)
- self.assertEqual(out.getvalue().strip(), "1 2 3 4 5 6 7")
+ self.assertEqual(out.getvalue(), " 1 2 3 4 5 6 7")
def test_prmonth(self):
with support.captured_stdout() as out:
@@ -414,7 +414,7 @@ class OutputTestCase(unittest.TestCase):
def test_pryear(self):
with support.captured_stdout() as out:
calendar.TextCalendar().pryear(2004)
- self.assertEqual(out.getvalue().strip(), result_2004_text.strip())
+ self.assertEqual(out.getvalue(), result_2004_text)
def test_format(self):
with support.captured_stdout() as out: