Skip to content

Commit d47b1fe

Browse files
committed
test: Resolve setting value of incompatible dtype warning
1 parent 2ea1060 commit d47b1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_bed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_score_validators():
6464
with pytest.raises(ValueError):
6565
bioframe.to_bed(bf, os.path.join(directory, 'foo.bed'), strict_score=True)
6666

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

0 commit comments

Comments
 (0)