Explorar el Código

Built-in 'next()' is new in 2.6

Matthew Wang hace 11 años
padre
commit
35a76e65ea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      tests/test_cdiff.py

+ 1
- 1
tests/test_cdiff.py Ver fichero

@@ -296,7 +296,7 @@ spam
296 296
         items = patch.splitlines(True)
297 297
         stream = cdiff.PatchStream(Sequential(items))
298 298
         parser = cdiff.DiffParser(stream)
299
-        self.assertRaises(RuntimeError, next, parser._parse())
299
+        self.assertRaises(RuntimeError, list, parser._parse())
300 300
 
301 301
     def test_parse_missing_new_path(self):
302 302
         patch = r"""\