Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few tests for writing vlen string datasets #1420

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

t20100
Copy link
Contributor

@t20100 t20100 commented Oct 23, 2019

This PR adds a few tests of writing (and reading) vlen string datasets in some specific cases.

I felt uncomfortable helping with PR #1406 without every case being tested.
This is a small step towards #1405.

@codecov
Copy link

codecov bot commented Oct 23, 2019

Codecov Report

Merging #1420 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1420   +/-   ##
=======================================
  Coverage   84.48%   84.48%           
=======================================
  Files          17       17           
  Lines        2037     2037           
=======================================
  Hits         1721     1721           
  Misses        316      316

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb670b8...983c648. Read the comment docs.

"""
dt = h5py.string_dtype('utf-8')
ds = self.f.create_dataset('x', (100,), dtype=dt)
ds[0] = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes, that works? I suspect we may change that for 3.0. +1 to testing things as they stand, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.... removing such things would simplify the conversion code.

@takluyver takluyver added this to the 3.0 milestone Oct 24, 2019
@takluyver
Copy link
Member

Thanks!

@takluyver takluyver merged commit b60bc5b into h5py:master Oct 24, 2019
@t20100 t20100 deleted the vlen-string-test branch October 24, 2019 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants