Merge pull request #1258 from henryiii/henryiii/chore/dev
chore: nicer tracebacks and dev improvements
This commit is contained in:
@@ -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}"])
|
||||
|
||||
@@ -19,7 +19,8 @@ ALL_IDS = {"cp36", "cp37", "cp38", "cp39", "cp310", "cp311", "pp37", "pp38", "pp
|
||||
@pytest.fixture
|
||||
def mock_build_container(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
|
||||
|
||||
Reference in New Issue
Block a user