Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #15 from mruffalo/master
Browse files Browse the repository at this point in the history
Fix the last failing test in Python 3
  • Loading branch information
brentp committed Aug 29, 2013
2 parents d42eb91 + d9172f5 commit a2caba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ def check_slice(f):

def check_array_copy(f):
# the array is definitely a copy...
a = np.array(f['chr3'])
a = np.array(f['chr3'], np.dtype('S1'))
old = f['chr3'][1:5]
assert (a.shape[0] == 3600)
a[1:5] = np.array('N', dtype='S1')
c = f['chr3'][1:5]
assert c == old

assert a[1:5].tostring().decode('ascii') == 'NNNN', a[1:5].tostring().decode('ascii')
assert a[1:5].tostring().decode() == 'NNNN', a[1:5].tostring().decode()

def check_one_based(f):
assert f.sequence({'chr': 'chr1', 'start': 2, 'stop': 9}) == 'CTGACTGA'
Expand Down

0 comments on commit a2caba4

Please sign in to comment.