diff mbox series

[meta-python] python3-arrow: Ignore America/Coyhaique ptest

Message ID 20250408063258.2800873-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python] python3-arrow: Ignore America/Coyhaique ptest | expand

Commit Message

Khem Raj April 8, 2025, 6:32 a.m. UTC
America/Coyhaique has changed recently and unless the tzdata is sync'ed
this will fail, so disable for now.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-devtools/python/python3-arrow/run-ptest    |  7 +++++++
 .../recipes-devtools/python/python3-arrow_1.3.0.bb     | 10 ++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-arrow/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-arrow/run-ptest b/meta-python/recipes-devtools/python/python3-arrow/run-ptest
new file mode 100644
index 0000000000..4f9f7327b5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-arrow/run-ptest
@@ -0,0 +1,7 @@ 
+#!/bin/sh
+
+# Ignore test_parse_tz_name_zzz[America/Coyhaique] because this has changed in latest pytz and zoneinfo
+# modules and latest version of arrow has moved away from pytz to zoneinfo module so once updating to
+# 1.4.0 or newer see if this test passes
+# see https://github.com/arrow-py/arrow/commit/2aaafcd581115c50cdcbf04b196657dad1692a26
+pytest --automake --deselect tests/test_parser.py::TestDateTimeParserParse::test_parse_tz_name_zzz[America/Coyhaique]
diff --git a/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb b/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb
index 7ce9583d2a..650520a023 100644
--- a/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-arrow_1.3.0.bb
@@ -4,21 +4,23 @@  SECTION = "devel/python"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=14a2e29a9d542fb9052d75344d67619d"
 
+SRC_URI:append = " \
+    file://run-ptest \
+"
 SRC_URI[sha256sum] = "d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85"
 
 inherit pypi python_flit_core ptest-python-pytest
 
 RDEPENDS:${PN}-ptest += " \
+    python3-dateparser \
     python3-dateutil-zoneinfo \
+    python3-pytest-cov \
     python3-pytest-mock \
     python3-pytz \
     python3-simplejson \
+    python3-types-python-dateutil \
 "
 
 RDEPENDS:${PN} += " \
-    python3-compression \
     python3-dateutil \
-    python3-dateutil-zoneinfo \
-    python3-json \
-    python3-types-python-dateutil \
 "