--- a/tests/test-archive Tue Apr 08 15:42:43 2008 +0200
+++ b/tests/test-archive Tue Apr 08 15:41:21 2008 +0200
@@ -40,10 +40,11 @@
gzip -dc test-$QTIP.tar.gz | tar tf - | sed "s/$QTIP/TIP/"
cat > md5comp.py <<EOF
-import md5, sys
+from mercurial.util import md5
+import sys
f1, f2 = sys.argv[1:3]
-h1 = md5.md5(file(f1, 'rb').read()).hexdigest()
-h2 = md5.md5(file(f2, 'rb').read()).hexdigest()
+h1 = md5(file(f1, 'rb').read()).hexdigest()
+h2 = md5(file(f2, 'rb').read()).hexdigest()
print h1 == h2 or "md5 differ: " + repr((h1, h2))
EOF