Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayvarma392 committed Nov 11, 2020
1 parent 0373779 commit bd5f3cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_download_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ def test_download_links():
# check that the fit_name matches with the name in the attributes
# of h5 file.
h5file = h5py.File('%s/fit_%s.h5'%(out_dir, name_tag), 'r')
assert(str.encode(name_tag) == h5file.attrs['name'])
tmp = h5file.attrs['name']
if isinstance(tmp, bytes):
tmp = tmp.decode('utf-8')
assert(name_tag == tmp)
h5file.close()

0 comments on commit bd5f3cc

Please sign in to comment.