]> git.llucax.com Git - z.facultad/75.52/sercom.git/blobdiff - sercom/tester.py
Actualizar TODO.
[z.facultad/75.52/sercom.git] / sercom / tester.py
index 4f381f13f1336aaca30ea95a20eaa96cf97bbf80..abc1d9052f9d7394d4646ff40300967b182739b8 100644 (file)
@@ -441,7 +441,7 @@ def ejecutar_comando_fuente(self, path, entrega): #{{{
         if longname is None:
             longname = name
         new = file(new, 'r').readlines()
-        orig = zip_in.read(name).split('\n')
+        orig = zip_in.read(name).splitlines(True)
         udiff = ''.join(list(unified_diff(orig, new, fromfile=name+'.'+origname,
             tofile=name+'.'+newname)))
         if udiff:
@@ -456,7 +456,7 @@ def ejecutar_comando_fuente(self, path, entrega): #{{{
                 fromdesc=name+'.'+origname, todesc=name+'.'+newname,
                 context=True, numlines=3)
             zip_out.writestr(name + '.diff', udiff)
-            zip_out.writestr(name + '.diff.html', htmldiff)
+            zip_out.writestr(name + '.diff', htmldiff)
             return True
         else:
             return False
@@ -652,7 +652,7 @@ def ejecutar_comando_prueba(self, path, prueba): #{{{
         if longname is None:
             longname = name
         new = file(new, 'r').readlines()
-        orig = zip_in.read(name).split('\n')
+        orig = zip_in.read(name).splitlines(True)
         udiff = ''.join(list(unified_diff(orig, new, fromfile=name+'.'+origname,
             tofile=name+'.'+newname)))
         if udiff:
@@ -667,7 +667,7 @@ def ejecutar_comando_prueba(self, path, prueba): #{{{
                 fromdesc=name+'.'+origname, todesc=name+'.'+newname,
                 context=True, numlines=3)
             zip_out.writestr(name + '.diff', udiff)
-            zip_out.writestr(name + '.diff.html', htmldiff)
+            zip_out.writestr(name + '.html', htmldiff)
             return True
         else:
             return False