]> 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 88dbe87adff2ba44aa7fe0ce24d6d2941c9e6346..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()
         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:
         udiff = ''.join(list(unified_diff(orig, new, fromfile=name+'.'+origname,
             tofile=name+'.'+newname)))
         if udiff:
@@ -652,7 +652,7 @@ def ejecutar_comando_prueba(self, path, prueba): #{{{
         if longname is None:
             longname = name
         new = file(new, 'r').readlines()
         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:
         udiff = ''.join(list(unified_diff(orig, new, fromfile=name+'.'+origname,
             tofile=name+'.'+newname)))
         if udiff: