Skip to content

Commit 470eff4

Browse files
committed
Formatting fix.
1 parent 6c5178f commit 470eff4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/selfie-lib/selfie_lib/SelfieImplementations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ def _toBeDidntMatch(expected: Optional[T], actual: T, fmt: LiteralFormat[T]) ->
273273
expectedStr = repr(expected)
274274
actualStr = repr(actual)
275275
if expectedStr == actualStr:
276-
raise f"Value of type {type(actual)} is not `==` to the expected value, but they both have the same `repr` value:\n${expectedStr}"
276+
raise ValueError(
277+
f"Value of type {type(actual)} is not `==` to the expected value, but they both have the same `repr` value:\n${expectedStr}"
278+
)
277279
else:
278280
raise _selfieSystem().fs.assert_failed(
279281
message=_selfieSystem().mode.msg_snapshot_mismatch(

0 commit comments

Comments
 (0)