changeset 29178:0fb2fddd00a3

tests: test-archive.t use open() instead of file() for py3 compat
author timeless <timeless@mozdev.org>
date Fri, 06 May 2016 19:16:16 +0000
parents df6b5c6d252a
children ce1c6ab15807
files tests/test-archive.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-archive.t	Fri May 06 19:15:37 2016 +0000
+++ b/tests/test-archive.t	Fri May 06 19:16:16 2016 +0000
@@ -202,8 +202,8 @@
   >     from md5 import md5
   > import sys
   > f1, f2 = sys.argv[1:3]
-  > h1 = md5(file(f1, 'rb').read()).hexdigest()
-  > h2 = md5(file(f2, 'rb').read()).hexdigest()
+  > h1 = md5(open(f1, 'rb').read()).hexdigest()
+  > h2 = md5(open(f2, 'rb').read()).hexdigest()
   > print(h1 == h2 or "md5 differ: " + repr((h1, h2)))
   > EOF