chore: cleaner exception tracebacks
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
committed by
Henry Schreiner
parent
929ecac7f8
commit
534cada6a5
@@ -31,7 +31,8 @@ def mock_protection(monkeypatch):
|
||||
"""
|
||||
|
||||
def fail_on_call(*args, **kwargs):
|
||||
raise RuntimeError("This should never be called")
|
||||
msg = "This should never be called"
|
||||
raise RuntimeError(msg)
|
||||
|
||||
def ignore_call(*args, **kwargs):
|
||||
pass
|
||||
|
||||
@@ -126,7 +126,8 @@ def get_default_repair_command(platform):
|
||||
elif platform == "windows":
|
||||
return ""
|
||||
else:
|
||||
raise ValueError("Unknown platform", platform)
|
||||
msg = f"Unknown platform: {platform!r}"
|
||||
raise ValueError(msg)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("repair_command", [None, "repair", "repair -w {dest_dir} {wheel}"])
|
||||
|
||||
Reference in New Issue
Block a user