1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-15 17:50:07 +00:00

python3-pyasn1: Eliminated ptest deprecation warnings

Eliminated the ptest deprecation warnings for the error:
    DeprecationWarning: _int_ returned non-int (type SizedInteger).
    The ability to return an instance of a strict subclass of int is deprecated,
    and may be removed in a future version of Python.
       return SizedInteger(value).setBitLength(len(value))

Patch from git upstream repo:
   https://github.com/etingof/pyasn1/commit/db8f1a7930c6b5826357646746337dafc983f953

(From OE-Core rev: ac674d95820137306e7c71f4275d92cf4fedf39d)

Signed-off-by: Yulong (Kevin) Liu <yulong.liu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yulong (Kevin) Liu
2022-06-15 12:41:27 -07:00
committed by Richard Purdie
parent 01aaeb444f
commit fb73351462
2 changed files with 29 additions and 0 deletions
@@ -19,6 +19,7 @@ inherit ptest
SRC_URI += " \
file://run-ptest \
file://0001-Fix-DeprecationWarning-__int__-returned-non-int-on-P.patch \
"
RDEPENDS:${PN}-ptest += " \