python-git-pw: add from meta-patchtest
PATCH 1/4 python-git-pw: add from meta-patchtest
git-pw is a tool for integrating Git with Patchwork instances. Add it to meta-python from meta-patchtest so that more workflows can take advantage of it.
--- .../python/python3-git-pw_2.5.0.bb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-git-pw_2.5.0.bb
meta-python/recipes-devtools/python/python3-git-pw_2.5.0.bb new file +20 -0
@@ -0,0 +1,20 @@ +SUMMARY = "A tool for integrating Git with Patchwork" +HOMEPAGE = "https://github.com/getpatchwork/git-pw" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=26e1a171d943c64f00c51f90c256b9d4" + +SRC_URI[sha256sum] = "c60169f9566bd6710f9c0985a005a0c326460b739d3f2b5c5c71e85211584590" + +inherit pypi python_setuptools_build_meta + +DEPENDS += " \ + python3-pbr-native \ +" + +RDEPENDS:${PN} += " \ + python3-arrow \ + python3-click \ + python3-pyyaml \ + python3-requests \ + python3-tabulate \ +"
Signature · 1 line
2.41.0
PATCH 2/4 python3-arrow: add from meta-patchtest
arrow is a module that aims to provide a more user-friendly approach to date and time in Python. It is required by git-pw which in turn is required by patchtest, so add a recipe for it. The version is updated 1.2.2 -> 1.3.0 from the meta-patchtest layer.
--- .../recipes-devtools/python/python3-arrow_1.3.0.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb
meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "Better dates and times for Python" +HOMEPAGE = "https://github.com/crsmithdev/arrow" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=14a2e29a9d542fb9052d75344d67619d" + +SRC_URI[sha256sum] = "d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85" + +inherit setuptools3 pypi + +RDEPENDS:${PN} += " \ + ${PYTHON_PN}-dateutil \ + "
Signature · 1 line
2.41.0
PATCH 3/4 python3-py-cpuinfo: disable broken ptests
In reply to Trevor GamblinThere are a handful of CLI-related ptests that consistently fail with an apparent permissions issue, but making the .../site-packages/cpuinfo/cpuinfo.py script executable does not seem to fix the problem. Skip these tests for now, and make sure that the right /usr/bin/env line is present in py-cpuinfo's scripts on the image.
--- .../0001-test_cli.py-disable.patch | 32 +++++++++++++++++++ .../python/python3-py-cpuinfo_9.0.0.bb | 8 +++++ 2 files changed, 40 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch
meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 620cb80b0bb5ec58fe15592f033487a4e1cd3859 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 16:46:53 -0400 +Subject: [PATCH] test_cli.py: disable + +These tests fail if .../site-packages/cpuinfo/cpuinfo.py isn't +executable, but setting it so during do_install doesn't seem to work. +Disable them for now so that the ptests work with the remaining ~150 +successes. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_cli.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/test_cli.py b/tests/test_cli.py +index a6b1985..43c4334 100644 +--- a/tests/test_cli.py ++++ b/tests/test_cli.py +@@ -6,6 +6,7 @@ import helpers + + + [email protected]("Disable while permissions issues are figured out") + class TestCLI(unittest.TestCase): + def setUp(self): + helpers.backup_data_source(cpuinfo) +-- +2.41.0 +
meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb +8 -0
@@ -11,8 +11,16 @@ SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3 inherit ptest pypi setuptools3 SRC_URI += "file://run-ptest \ + file://0001-test_cli.py-disable.patch \ " +do_install:append() { + # Make sure we use /usr/bin/env python3 + for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT + done +} + do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
Signature · 1 line
2.41.0
Re: [oe] [meta-python][PATCH 3/4] python3-py-cpuinfo: disable broken ptests
Quoted 7 lines · Trevor Gamblin
There are a handful of CLI-related ptests that consistently fail with an apparent permissions issue, but making the
.../site-packages/cpuinfo/cpuinfo.pyscript executable does not seem to fix the problem. Skip these tests for now, and make sure that the right/usr/bin/envline is present in py-cpuinfo's scripts on the image.
Good. Can you also move it out of PTESTS_PROBLEMS_META_PYTHON into either PTESTS_FAST_META_PYTHON or PTESTS_SLOW_META_PYTHON
Quoted 78 lines
Signed-off-by Trevor Gamblin <[email protected]>--- .../0001-test_cli.py-disable.patch | 32 +++++++++++++++++++ .../python/python3-py-cpuinfo_9.0.0.bb | 8 +++++ 2 files changed, 40 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patchmeta-python/recipes-devtools/python/python3-py-cpuinfo/0001-test_cli.py-disable.patch new file +32
-0@@ -0,0 +1,32 @@ +From 620cb80b0bb5ec58fe15592f033487a4e1cd3859 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 16:46:53 -0400 +Subject: [PATCH] test_cli.py: disable + +These tests fail if .../site-packages/cpuinfo/cpuinfo.py isn't +executable, but setting it so during do_install doesn't seem to work. +Disable them for now so that the ptests work with the remaining ~150 +successes. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_cli.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/test_cli.py b/tests/test_cli.py +index a6b1985..43c4334 100644 +--- a/tests/test_cli.py ++++ b/tests/test_cli.py +@@ -6,6 +6,7 @@ import helpers + + + [email protected]("Disable while permissions issues are figured out") + class TestCLI(unittest.TestCase): + def setUp(self): + helpers.backup_data_source(cpuinfo) +-- +2.41.0 +meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb +8
-1@@ -11,8 +11,16 @@ SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3 inherit ptest pypi setuptools3 SRC_URI += "file://run-ptest \ + file://0001-test_cli.py-disable.patch \ " +do_install:append() { + # Make sure we use /usr/bin/env python3 + for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT + done +} + do_install_ptest() { install -d ${D}${PTEST_PATH}/tests cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ --2.41.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105482): https://lists.openembedded.org/g/openembedded-devel/message/105482
Mute This Topic: https://lists.openembedded.org/mt/101944756/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 4/4 python3-pytest-mock: disable broken ptests
In reply to Trevor GamblinTwo introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available.
--- ...t_mock-skip-args-introspection-tests.patch | 38 +++++++++++++++++++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +38 -0
@@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py ++++ b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 +
meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +1 -0
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ 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 \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe"
Signature · 1 line
2.41.0
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
Quoted 4 lines · Trevor Gamblin
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available.
For regular runs can we move it out of PTESTS_PROBLEMS_META_PYTHON into either PTESTS_FAST_META_PYTHON or PTESTS_SLOW_META_PYTHON
Quoted 75 lines
Signed-off-by Trevor Gamblin <[email protected]>--- ...t_mock-skip-args-introspection-tests.patch | 38 +++++++++++++++++++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchmeta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +38
-0@@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py ++++ b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 +meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +1
-1@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ 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 \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe" --2.41.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105483): https://lists.openembedded.org/g/openembedded-devel/message/105483
Mute This Topic: https://lists.openembedded.org/mt/101944758/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
Quoted 6 lines · Khem Raj
Quoted 3 lines · Trevor Gamblin
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available.
For regular runs can we move it out of
PTESTS_PROBLEMS_META_PYTHONinto eitherPTESTS_FAST_META_PYTHONorPTESTS_SLOW_META_PYTHON
Done, sent a patch to move both recipes.
Quoted 76 lines
Quoted 76 lines
Signed-off-by Trevor Gamblin <[email protected]>--- ...t_mock-skip-args-introspection-tests.patch | 38 +++++++++++++++++++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+)create mode 100644
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchmeta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +38
-0@@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py ++++ b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker: MockerFixture) -> None: + stub.assert_called() + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +@@ -597,6 +598,7 @@ def test_assert_called_args_with_introspection(mocker: MockerFixture) -> None: + stub.assert_called_once_with(*wrong_args) + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker: MockerFixture) -> None: + stub = mocker.stub() +-- +2.41.0 +meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +1
-1@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ 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 \ " SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe" --2.41.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105483): https://lists.openembedded.org/g/openembedded-devel/message/105483
Mute This Topic: https://lists.openembedded.org/mt/101944758/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
Quoted 9 lines · Trevor Gamblin
Quoted 6 lines · Khem Raj
Quoted 3 lines · Trevor Gamblin
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available.
For regular runs can we move it out of
PTESTS_PROBLEMS_META_PYTHONinto eitherPTESTS_FAST_META_PYTHONorPTESTS_SLOW_META_PYTHONDone, sent a patch to move both recipes.
Thanks, it will start running in my regular CI jobs now.
Quoted 82 lines
Quoted 82 lines
Quoted 82 lines
Signed-off-by Trevor Gamblin <[email protected]>---
...t_mock-skip-args-introspection-tests.patch | 38 +++++++++++++++++++ .../python/python3-pytest-mock_3.11.1.bb | 1 +2 files changed, 39 insertions(+)create mode 100644
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch(quoted diff) +0
-0
b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchmeta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +20
-0@@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py ++++ b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker:MockerFixture) -> None:
+stub.assert_called()meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +5
-0+ + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker:MockerFixture) -> None:
+ stub =mocker.stub()
+@@ -597,6 +598,7 @@ deftest_assert_called_args_with_introspection(mocker: MockerFixture)-> None:
+stub.assert_called_once_with(*wrong_args)meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +5
-0+ + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker:MockerFixture) -> None:
+ stub =mocker.stub()
+--
+2.41.0(quoted diff) +1
-0+meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +1
-0@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ 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 \"
SRCREV ?= "
d3e73f2e93f7b93eba0a36e17e43bafd969da4fe"Signature · 10 lines
2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#105483): https://lists.openembedded.org/g/openembedded-devel/message/105483 Mute This Topic: https://lists.openembedded.org/mt/101944758/1997914 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
Fails for me
AssertionError:
Failed ptests:
{'python3-pytest-mock':
['tests/test_pytest_mock.py::test_detailed_introspection_async',
'tests/test_pytest_mock.py::test_plain_stopall',
'tests/test_pytest_mock.py::test_used_with_class_scope',
'tests/test_pytest_mock.py::test_used_with_module_scope',
'tests/test_pytest_mock.py::test_used_with_package_scope',
'tests/test_pytest_mock.py::test_used_with_session_scope']}
here is detailed ptest log
https://snips.sh/f/abkZuQSUsK
Quoted 105 lines · Khem Raj
Quoted 10 lines · Trevor Gamblin
Quoted 7 lines · Khem Raj
Quoted 3 lines · Trevor Gamblin
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available.
For regular runs can we move it out of
PTESTS_PROBLEMS_META_PYTHONinto eitherPTESTS_FAST_META_PYTHONorPTESTS_SLOW_META_PYTHONDone, sent a patch to move both recipes.
Thanks, it will start running in my regular CI jobs now.
Quoted 90 lines
Quoted 90 lines
Quoted 90 lines
Signed-off-by Trevor Gamblin <[email protected]>--- ...t_mock-skip-args-introspection-tests.patch | 38 +++++++++++++++++++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+)create mode 100644
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchdiff --git
a/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchb/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchnew file mode 100644
index 0000000000..f024e79d93
---/dev/null
+++b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchmeta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +20
-0@@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py ++++ b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker:MockerFixture) -> None:
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +6
-0+ stub.assert_called() + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker:MockerFixture) -> None:
+ stub =mocker.stub()
+@@ -597,6 +598,7 @@ deftest_assert_called_args_with_introspection(mocker: MockerFixture)-> None:meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +6
-0+ stub.assert_called_once_with(*wrong_args) + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker:MockerFixture) -> None:
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +4
-0+ stub = mocker.stub() +-- +2.41.0 +diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb index
69d74567c3..7fd998edc6100644meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +1
-0@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ 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 \ "SRCREV ?= "
d3e73f2e93f7b93eba0a36e17e43bafd969da4fe"
--
2.41.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105483):
https://lists.openembedded.org/g/openembedded-devel/message/105483
Mute This Topic: https://lists.openembedded.org/mt/101944758/1997914
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH 4/4] python3-pytest-mock: disable broken ptests
Quoted 10 lines · Khem Raj
Fails for me
AssertionError:
Failed ptests:
{'python3-pytest-mock':
['tests/test_pytest_mock.py::test_detailed_introspection_async',
'tests/test_pytest_mock.py::test_plain_stopall','tests/test_pytest_mock.py::test_used_with_class_scope',
Quoted 8 lines
'tests/test_pytest_mock.py::test_used_with_module_scope',
'tests/test_pytest_mock.py::test_used_with_package_scope',
'tests/test_pytest_mock.py::test_used_with_session_scope']}
here is detailed ptest log
https://snips.sh/f/abkZuQSUsK
Weird. Can you take the python3-git-pw and python3-arrow recipes, and I'll take a look at these?
Quoted 103 lines · Khem Raj
Quoted 101 lines · Trevor Gamblin
Quoted 9 lines · Khem Raj
Quoted 7 lines
Quoted 3 lines · Trevor Gamblin
Two introspection-related ptests are consistently failing. For now, disable them so that a clean ptest run is available.
For regular runs can we move it out of
PTESTS_PROBLEMS_META_PYTHONinto eitherPTESTS_FAST_META_PYTHONorPTESTS_SLOW_META_PYTHONDone, sent a patch to move both recipes.
Thanks, it will start running in my regular CI jobs now.
Quoted 89 lines
Quoted 89 lines
Quoted 89 lines
Signed-off-by Trevor Gamblin <[email protected]>--- ...t_mock-skip-args-introspection-tests.patch | 38 +++++++++++++++++++ .../python/python3-pytest-mock_3.11.1.bb | 1 + 2 files changed, 39 insertions(+)create mode 100644
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchdiff --git
a/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchb/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchnew file mode 100644
index 0000000000..f024e79d93
---/dev/null
+++b/meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patchmeta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +20
-0@@ -0,0 +1,38 @@ +From e184fb950ad3b52c5c16438d39fe4d516c784e30 Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin <[email protected]> +Date: Thu, 12 Oct 2023 17:32:40 -0400 +Subject: [PATCH] test_pytest_mock: skip args introspection tests + +Disable these two tests for now so that python3-pytest-mock can have +successful ptest runs. + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Trevor Gamblin <[email protected]> +--- + tests/test_pytest_mock.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py +index 3d53241..157b6c3 100644 +--- a/tests/test_pytest_mock.py ++++ b/tests/test_pytest_mock.py +@@ -581,6 +581,7 @@ def test_assert_called_wrapper(mocker:MockerFixture) -> None:
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +6
-0+ stub.assert_called() + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_args_with_introspection(mocker:MockerFixture) -> None:
+ stub =mocker.stub()
+@@ -597,6 +598,7 @@ deftest_assert_called_args_with_introspection(mocker: MockerFixture)-> None:meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +6
-0+ stub.assert_called_once_with(*wrong_args) + + [email protected]("Async not correctly detected, skip for now") + @pytest.mark.usefixtures("needs_assert_rewrite") + def test_assert_called_kwargs_with_introspection(mocker:MockerFixture) -> None:
meta-python/recipes-devtools/python/python3-pytest-mock/0001-test_pytest_mock-skip-args-introspection-tests.patch new file +4
-0+ stub = mocker.stub() +-- +2.41.0 +diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb index
69d74567c3..7fd998edc6100644meta-python/recipes-devtools/python/python3-pytest-mock_3.11.1.bb +1
-0@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = " \ 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 \ "SRCREV ?= "d3e73f2e93f7b93eba0a36e17e43bafd969da4fe"--
2.41.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105483):
https://lists.openembedded.org/g/openembedded-devel/message/105483
Mute This Topic: https://lists.openembedded.org/mt/101944758/1997914
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-