Skip to content

Commit

Permalink
fix recipe name for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
brentpicasso committed Oct 21, 2024
1 parent 4243b55 commit 920d4db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ def test_postarch_build(self, mock_install_stl_lib):
def test_recipe_download_headers(self):
"""Download header can be created on the fly using environment variables."""
recipe = DummyRecipe()
recipe.name = "dummy"
with mock.patch.dict(os.environ, {'DOWNLOAD_HEADERS_dummy': '[["header1","foo"],["header2", "bar"]]'}):
with mock.patch.dict(os.environ, {f'DOWNLOAD_HEADERS_{recipe.name}': '[["header1","foo"],["header2", "bar"]]'}):
download_headers = recipe.download_headers
assert download_headers == [["header1", "foo"], ["header2", "bar"]]

0 comments on commit 920d4db

Please sign in to comment.