Commit f035a5a2 authored by Manuel Günther's avatar Manuel Günther

Fixed next py26 issue

parent e16c0b71
......@@ -44,8 +44,9 @@ def _check_binary_identical(name1, name2):
else:
from hashlib import md5
# tests if two files are binary identical
with open(name1,'rb') as f1, open(name2,'rb') as f2:
assert md5(f1.read()).digest() == md5(f2.read()).digest()
with open(name1,'rb') as f1:
with open(name2,'rb') as f2:
assert md5(f1.read()).digest() == md5(f2.read()).digest()
def test_convert_openbr():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment