Skip to content

Commit 89cc00d

Browse files
committed
refactor: change tests to use value error also
1 parent f8406aa commit 89cc00d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pins/tests/test_compat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_board_pin_write_manifest_name_error(board_manifest):
162162
if board_manifest.fs.protocol == "rsc":
163163
pytest.skip()
164164

165-
with pytest.raises(PinsError) as exc_info:
165+
with pytest.raises(ValueError) as exc_info:
166166
board_manifest.pin_write([1], "_pins.yaml", type="json")
167167

168168
assert "name '_pins.yaml' is reserved for internal use." in exc_info.value.args[0]
@@ -173,14 +173,14 @@ def test_board_manifest_pin_list_no_internal_name(board_manifest):
173173

174174

175175
def test_board_manifest_pin_exist_internal_name_errors(board_manifest):
176-
with pytest.raises(PinsError) as exc_info:
176+
with pytest.raises(ValueError) as exc_info:
177177
board_manifest.pin_exists("_pins.yaml")
178178

179179
assert "reserved for internal use." in exc_info.value.args[0]
180180

181181

182182
def test_board_manifest_pin_read_internal_errors(board_manifest):
183-
with pytest.raises(PinsError) as exc_info:
183+
with pytest.raises(ValueError) as exc_info:
184184
board_manifest.pin_read("_pins.yaml")
185185

186186
assert "reserved for internal use." in exc_info.value.args[0]

0 commit comments

Comments
 (0)