mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue