Skip to contentSkip to conversation

python3-mock: upgrade 4.0.3 -> 5.0.0

PATCH New [email protected] 1 participant 4 messages Jan 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-mock: upgrade 4.0.3 -> 5.0.0

From: Wang Mingyu <[email protected]>

Changelog:
==========
-gh-98624: Add a mutex to unittest.mock.NonCallableMock to protect concurrent
access to mock attributes.
-bpo-43478: Mocks can no longer be used as the specs for other Mocks. As a
result, an already-mocked object cannot have an attribute mocked using autospec=True or be the subject of a create_autospec call. This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions (e.g. assert_called_once_with) will unconditionally pass.
-bpo-45156: Fixes infinite loop on unittest.mock.seal() of mocks created by
create_autospec().
-bpo-41403: Make mock.patch() raise a TypeError with a relevant error message
on invalid arg. Previously it allowed a cryptic AttributeError to escape.
-gh-91803: Fix an error when using a method of objects mocked with
unittest.mock.create_autospec() after it was sealed with unittest.mock.seal() function.
-bpo-41877: AttributeError for suspected misspellings of assertions on mocks are
now pointing out that the cause are misspelled assertions and also what to do if the misspelling is actually an intended attribute name. The unittest.mock document is also updated to reflect the current set of recognised misspellings.
-bpo-43478: Mocks can no longer be provided as the specs for other Mocks.
As a result, an already-mocked object cannot be passed to mock.Mock(). This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions
(e.g. assert_called_once_with) will unconditionally pass.
-bpo-45010: Remove support of special method __div__ in unittest.mock.
It is not used in Python 3.
-gh-84753: inspect.iscoroutinefunction() now properly returns True when an
instance of unittest.mock.AsyncMock is passed to it. This makes it consistent with behavior of asyncio.iscoroutinefunction(). Patch by Mehdi ABAAKOUK.
-bpo-46852: Remove the undocumented private float.__set_format__() method,
previously known as float.__setformat__() in Python 3.7. Its docstring
said: "You probably don't want to use this function. It exists mainly to be used in Python's test suite." Patch by Victor Stinner.
-gh-98086: Make sure patch.dict() can be applied on async functions. -gh-100287: Fix the interaction of unittest.mock.seal() with unittest.mock.AsyncMock. -gh-83076: Instantiation of Mock() and AsyncMock() is now 3.8x faster. -bpo-41877: A check is added against misspellings of autospect, auto_spec and
set_spec being passed as arguments to patch, patch.object and create_autospec.

---
 .../python/{python3-mock_4.0.3.bb => python3-mock_5.0.0.bb}     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-mock_4.0.3.bb => python3-mock_5.0.0.bb} (84%)
meta-python/recipes-devtools/python/python3-mock_5.0.0.bb renamed from meta-python/recipes-devtools/python/python3-mock_4.0.3.bb +1 -1
similarity index 84%
rename from meta-python/recipes-devtools/python/python3-mock_4.0.3.bb
rename to meta-python/recipes-devtools/python/python3-mock_5.0.0.bb
index 8f2305b50..dcc57c22b 100644
@@ -13,4 +13,4 @@ RDEPENDS:${PN} += "${PYTHON_PN}-prettytable \
             ${PYTHON_PN}-pep8 \
             ${PYTHON_PN}-pyflakes"
 
-SRC_URI[sha256sum] = "7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc"
+SRC_URI[sha256sum] = "fd552787228eb2ab8352f270470fa93c9ad8b9cbc565c5558ee3faed8edb3853"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 python3-pydantic: upgrade 1.10.2 -> 1.10.4

From: Wang Mingyu <[email protected]>

Changelog:
Change dependency to typing-extensions>=4.2.0, #4885

---
 .../{python3-pydantic_1.10.2.bb => python3-pydantic_1.10.4.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_1.10.2.bb => python3-pydantic_1.10.4.bb} (85%)
meta-python/recipes-devtools/python/python3-pydantic_1.10.4.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_1.10.2.bb +1 -1
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-pydantic_1.10.2.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_1.10.4.bb
index 16bb1f6ae..c17f3024c 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2c02ea30650b91528657db64baea1757"
 
 inherit pypi setuptools3
 
-SRC_URI[sha256sum] = "91b8e218852ef6007c2b98cd861601c6a09f1aa32bbbb74fab5b1c33d4a1e410"
+SRC_URI[sha256sum] = "b9a3859f24eb4e097502a3be1fb4b2abb79b6103dd9e2e0edb70613a4459a648"
 
 RDEPENDS:${PN} += "\
     ${PYTHON_PN}-typing-extensions \
Signature · 1 line
2.25.1
#2 lore raw

PATCH 1/1 python3-watchdog: upgrade 2.2.0 -> 2.2.1

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Changelog:
==========
Enable mypy to discover type hints as specified in PEP 561 (#933)
[ci] Set the expected Python version when building release files
[ci] Update actions versions in use
[watchmedo] [regression] Fix usage of missing signal.SIGHUP attribute on non-Unix OSes (#935)

---
 .../{python3-watchdog_2.2.0.bb => python3-watchdog_2.2.1.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-watchdog_2.2.0.bb => python3-watchdog_2.2.1.bb} (80%)
meta-python/recipes-devtools/python/python3-watchdog_2.2.1.bb renamed from meta-python/recipes-devtools/python/python3-watchdog_2.2.0.bb +1 -1
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-watchdog_2.2.0.bb
rename to meta-python/recipes-devtools/python/python3-watchdog_2.2.1.bb
index 12adaf9f7..b76c6de0e 100644
@@ -4,7 +4,7 @@ DEPENDS = "${PYTHON_PN}-argh"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-SRC_URI[sha256sum] = "83cf8bc60d9c613b66a4c018051873d6273d9e45d040eed06d6a96241bd8ec01"
+SRC_URI[sha256sum] = "cdcc23c9528601a8a293eb4369cbd14f6b4f34f07ae8769421252e9c22718b6f"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.25.1
#3 lore raw

PATCH 1/1 python3-xxhash: upgrade 3.1.0 -> 3.2.0

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Changelog:
==========
Build Python 3.11 wheels.
Remove setup.py test_suites, call unittest directly

---
 .../python/{python3-xxhash_3.1.0.bb => python3-xxhash_3.2.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-xxhash_3.1.0.bb => python3-xxhash_3.2.0.bb} (83%)
meta-python/recipes-devtools/python/python3-xxhash_3.2.0.bb renamed from meta-python/recipes-devtools/python/python3-xxhash_3.1.0.bb +1 -1
similarity index 83%
rename from meta-python/recipes-devtools/python/python3-xxhash_3.1.0.bb
rename to meta-python/recipes-devtools/python/python3-xxhash_3.2.0.bb
index bb7bdd314..c4d74306c 100644
@@ -3,7 +3,7 @@ SECTION = "devel/python"
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3a9dab7f159514231249aa3e108ab26b"
 
-SRC_URI[sha256sum] = "ac21b1e21dc6fdfee9a57b53f4777539d53a84f2e1546a3f802f159f9966bdc1"
+SRC_URI[sha256sum] = "1afd47af8955c5db730f630ad53ae798cf7fae0acb64cebb3cf94d35c47dd088"
 
 SRC_URI += " \
     file://run-ptest \
Signature · 1 line
2.25.1