From 6d8fd33bad878223d465fc1658614bb51adfadce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Ramos=20P=C3=A9rez?= Date: Wed, 24 Jan 2024 13:45:00 +0100 Subject: [PATCH 1/2] add support for python 3.12 --- .github/workflows/ci.yml | 2 +- CHANGELOG.rst | 1 + setup.py | 1 + toolium/test_cases.py | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acf73172..f227ece3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] fail-fast: false steps: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3ff59bd2..8073fb8d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,7 @@ v3.1.1 *Release date: In development* +- Add support for Python 3.12 - Upgrade Sphinx version from 4.* to 7.* to fix readthedocs theme format - Do not log warning messages when toolium system properties are used diff --git a/setup.py b/setup.py index 641d6f89..94941cc1 100644 --- a/setup.py +++ b/setup.py @@ -67,6 +67,7 @@ def get_long_description(): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Testing', diff --git a/toolium/test_cases.py b/toolium/test_cases.py index b8a702ee..b20a3487 100644 --- a/toolium/test_cases.py +++ b/toolium/test_cases.py @@ -73,7 +73,7 @@ def tearDown(self): error_message = get_error_message_from_exception(exception) elif not hasattr(self._outcome, 'errors') and hasattr(self._outcome.result, 'failures') \ and len(self._outcome.result.failures) > 0: - # Python 3.11 + # Python >=3.11 traceback = self._outcome.result.failures[0][1] error_message = get_error_message_from_traceback(traceback) From c836067900b934b4609c2ac6e6f021db1e575c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Ramos=20P=C3=A9rez?= Date: Thu, 1 Feb 2024 12:48:37 +0100 Subject: [PATCH 2/2] update lxml version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e7c89975..6940efb2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,6 @@ selenium~=4.0 # web tests Appium-Python-Client~=2.3 # mobile tests Pillow~=9.4 # visual testing screeninfo~=0.8 -lxml==4.9.2 +lxml~=5.1 Faker~=18.3 phonenumbers~=8.13