From b48204f55eb41e8cc9bdf99d72942faab1da09fb Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Thu, 29 Feb 2024 10:22:35 +0100 Subject: [PATCH] :white_check_mark: Fix test_get_dep_names_of_package Recent pythonf-for-android release added setuptools to install_requires. Pinning to previous release fixes to test. The error was: ``` def test_get_dep_names_of_package(): # TEST 1 from external ref: # Check that colorama is returned without the install condition when # just getting the names (it has a "; ..." conditional originally): dep_names = get_dep_names_of_package("python-for-android") assert "colorama" in dep_names > assert "setuptools" not in dep_names E AssertionError: assert 'setuptools' not in {'Jinja2', 'appdirs', 'build', 'colorama', 'packaging', 'setuptools', ...} tests/test_pythonpackage_basic.py:90: AssertionError ``` --- tests/test_pythonpackage_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pythonpackage_basic.py b/tests/test_pythonpackage_basic.py index e98a5f99b0..f1eb68369c 100644 --- a/tests/test_pythonpackage_basic.py +++ b/tests/test_pythonpackage_basic.py @@ -85,7 +85,7 @@ def test_get_dep_names_of_package(): # TEST 1 from external ref: # Check that colorama is returned without the install condition when # just getting the names (it has a "; ..." conditional originally): - dep_names = get_dep_names_of_package("python-for-android") + dep_names = get_dep_names_of_package("python-for-android==2023.9.16") assert "colorama" in dep_names assert "setuptools" not in dep_names try: