Skip to content

Commit

Permalink
test: Resolve setting value of incompatible dtype warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Jun 19, 2024
1 parent 2ea1060 commit d47b1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_score_validators():
with pytest.raises(ValueError):
bioframe.to_bed(bf, os.path.join(directory, 'foo.bed'), strict_score=True)

bf.loc[0, 'score'] = '.' # enforced to be a number by the types
bf['score'] = '.' # enforced to be a number by the types
with pytest.raises(TypeError):
bioframe.to_bed(bf, os.path.join(directory, 'foo.bed'))

Expand Down

0 comments on commit d47b1fe

Please sign in to comment.