[tests/postprocessor] fix 'TypeError' when logging an error (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3121493719
This commit is contained in:
@@ -6,5 +6,5 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
__version__ = "1.30.1"
|
__version__ = "1.30.2-dev"
|
||||||
__variant__ = None
|
__variant__ = None
|
||||||
|
|||||||
@@ -314,6 +314,7 @@ class ExecTest(BasePostprocessorTest):
|
|||||||
|
|
||||||
with patch("gallery_dl.util.Popen") as p:
|
with patch("gallery_dl.util.Popen") as p:
|
||||||
i = Mock()
|
i = Mock()
|
||||||
|
i.wait.return_value = 0
|
||||||
p.return_value = i
|
p.return_value = i
|
||||||
self._trigger(("after",))
|
self._trigger(("after",))
|
||||||
|
|
||||||
@@ -334,6 +335,7 @@ class ExecTest(BasePostprocessorTest):
|
|||||||
|
|
||||||
with patch("gallery_dl.util.Popen") as p:
|
with patch("gallery_dl.util.Popen") as p:
|
||||||
i = Mock()
|
i = Mock()
|
||||||
|
i.wait.return_value = 0
|
||||||
p.return_value = i
|
p.return_value = i
|
||||||
self._trigger(("after",))
|
self._trigger(("after",))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user