From 46000ee7c8b331dfa0eb9e454b26414571f76954 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 23 Aug 2017 02:15:37 -0400 Subject: [PATCH] Fix test on old Python versions --- tests/test_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_template.py b/tests/test_template.py index a53d5d2..5b939f0 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -603,8 +603,8 @@ class TestTemplate(TreeEqualityTestCase): template.add('census estimate yr', "2016", before="pop") template.remove("census yr") - oldlines = original.splitlines(keepends=True) - newlines = str(code).splitlines(keepends=True) + oldlines = original.splitlines(True) + newlines = str(code).splitlines(True) difflines = unified_diff(oldlines, newlines, n=1) diff = "".join(list(difflines)[2:]).strip() self.assertEqual(expected, diff)