Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beeankha committed Aug 9, 2024
1 parent 9278e78 commit 7b0aef2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_api_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,13 @@ def test_c_extension_error(base_platform, package):
download(f, fn)

for platform in platforms:
with pytest.raises(CondaBuildUserError) as e:
with pytest.raises(
CondaBuildUserError,
match=f"WARNING: Package {fn} contains C extensions; skipping conversion. "
"Use -f to force conversion.",
):
api.convert(fn, platforms=platform)

assert (
f"WARNING: Package {fn} contains C extensions; skipping conversion. "
"Use -f to force conversion."
) in str(e.value)


@pytest.mark.parametrize("base_platform", ["linux", "win", "osx"])
@pytest.mark.parametrize("package", [("cryptography-1.8.1", "__about__.py")])
Expand Down

0 comments on commit 7b0aef2

Please sign in to comment.