mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
Fix collections.abc deprecation warning in downloadutils Warning appears as:
tests/test_downloadutils.py::test_stream_response_to_specific_filename
requests_toolbelt/downloadutils/stream.py:161: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
if path and isinstance(getattr(path, 'write', None), collections.Callable):
Upstream-Status: Backport [https://github.com/requests/toolbelt/commit/7188b06330e5260be20bce8cbcf0d5ae44e34eaf]
Signed-off-by: Narpat Mali <narpat.mali@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
a8055484f2
commit
19f07c055a
@@ -6,7 +6,8 @@ LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=71760e0f1dda8cff91b0bc9246caf571"
|
||||
|
||||
SRC_URI = "file://run-ptest \
|
||||
"
|
||||
file://0001-Fix-collections.abc-deprecation-warning-in-downloadu.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "b1509735c4b4cf95df2619facbc3672e"
|
||||
SRC_URI[sha256sum] = "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"
|
||||
@@ -31,4 +32,4 @@ do_install_ptest() {
|
||||
# remove test test_multipart_encoder.py as it fails,
|
||||
# downloaded file is not supported
|
||||
rm -f ${D}${PTEST_PATH}/tests/test_multipart_encoder.py
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user