There was an error while loading. Please reload this page.
1 parent e6372ce commit 7574a9dCopy full SHA for 7574a9d
1 file changed
tests/test_sparse_vector.py
@@ -27,7 +27,7 @@ def test_list_empty(self) -> None:
27
assert SparseVector([]).to_list() == []
28
29
def test_list_str(self) -> None:
30
- with pytest.raises(ValueError, match='could not convert string to float') as error:
+ with pytest.raises(ValueError, match='could not convert string to float'):
31
SparseVector([1, 'two', 3]) # type: ignore
32
33
def test_list_dimensions(self) -> None:
0 commit comments