Skip to content

Commit 920d4db

Browse files
committed
fix recipe name for python 3.8
1 parent 4243b55 commit 920d4db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_recipe.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ def test_postarch_build(self, mock_install_stl_lib):
330330
def test_recipe_download_headers(self):
331331
"""Download header can be created on the fly using environment variables."""
332332
recipe = DummyRecipe()
333-
recipe.name = "dummy"
334-
with mock.patch.dict(os.environ, {'DOWNLOAD_HEADERS_dummy': '[["header1","foo"],["header2", "bar"]]'}):
333+
with mock.patch.dict(os.environ, {f'DOWNLOAD_HEADERS_{recipe.name}': '[["header1","foo"],["header2", "bar"]]'}):
335334
download_headers = recipe.download_headers
336335
assert download_headers == [["header1", "foo"], ["header2", "bar"]]

0 commit comments

Comments
 (0)