python3-pytest-mock: Fix ptest failures with python 3.12

Fixes following regressions seen with python 3.12 upgrade

AssertionError:
Failed ptests:
{'python3-pytest-mock': ['tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_no_name',
                         'tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[None]',
                         'tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[]',
                         'tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[f]',
                         'tests/test_pytest_mock.py::TestMockerStub::test_failure_message_with_name[The_Castle_of_aaarrrrggh]']}

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2024-01-23 12:48:19 -08:00
parent 855b4182a5
commit 51392e0d14
2 changed files with 93 additions and 3 deletions
@@ -9,12 +9,10 @@ SRC_URI = " \
git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \
file://run-ptest \
file://0001-test_pytest_mock-skip-args-introspection-tests.patch \
file://403.patch \
"
SRCREV = "69adc6f76c1a7baf4e7a728da9eec38741d5783e"
SRC_URI[sha256sum] = "fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f"
inherit setuptools3 ptest
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"