8000 fix tests · rnixx/python-for-android@4243b55 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 4243b55

Browse files
committed
fix tests
1 parent f8802d3 commit 4243b55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_recipe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ 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-
with mock.patch.dict(os.environ, '[["header1","foo"],["header2", "bar"]]'):
333+
recipe.name = "dummy"
334+
with mock.patch.dict(os.environ, {'DOWNLOAD_HEADERS_dummy': '[["header1","foo"],["header2", "bar"]]'}):
334335
download_headers = recipe.download_headers
335336
assert download_headers == [["header1", "foo"], ["header2", "bar"]]

0 commit comments

Comments
 (0)
0