mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
fix pylint C1803: 'icons_src == {}' can be simplified to 'not icons_src' as an empty dict is falsey (use-implicit-booleaness-not-comparison)
This commit is contained in:
parent
176301d831
commit
9d2cc1ecc5
@ -1358,7 +1358,7 @@ class UpdateTest(unittest.TestCase):
|
|||||||
|
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
icons_src = fdroidserver.update._get_apk_icons_src('urzip-release.apk', None)
|
icons_src = fdroidserver.update._get_apk_icons_src('urzip-release.apk', None)
|
||||||
assert icons_src == {}
|
assert not icons_src
|
||||||
|
|
||||||
def test_strip_and_copy_image(self):
|
def test_strip_and_copy_image(self):
|
||||||
tmptestsdir = tempfile.mkdtemp(
|
tmptestsdir = tempfile.mkdtemp(
|
||||||
|
Loading…
Reference in New Issue
Block a user