Procházet zdrojové kódy

Fix test on old Python versions

tags/v0.5.1
Ben Kurtovic před 6 roky
committed by GitHub
rodič
revize
46000ee7c8
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      tests/test_template.py

+ 2
- 2
tests/test_template.py Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit