Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
f035a5a2
Commit
f035a5a2
authored
Sep 17, 2015
by
Manuel Günther
Browse files
Fixed next py26 issue
parent
e16c0b71
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/test_io.py
View file @
f035a5a2
...
...
@@ -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
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment