Skip to content

Commit

Permalink
Add test for string writing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Apr 7, 2021
1 parent e65bce6 commit 4f650cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ def test_read_data_h5py():

df = pd.DataFrame({
'x': np.random.normal(size=50).astype('float32'),
'N': np.random.randint(0, 10, dtype='uint8', size=50)
'N': np.random.randint(0, 10, dtype='uint8', size=50),
'name': [f"s{i}" for i in range(50)],
}).sort_index(1)

with tempfile.NamedTemporaryFile(suffix='.hdf5') as f:
Expand Down

0 comments on commit 4f650cd

Please sign in to comment.