Merge pull request #1258 from henryiii/henryiii/chore/dev

chore: nicer tracebacks and dev improvements
This commit is contained in:
Joe Rickerby
2022-09-25 09:34:05 +01:00
committed by GitHub
19 changed files with 95 additions and 58 deletions
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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}"])
+2 -1
View File
@@ -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