Fix flake

This commit is contained in:
Nyall Dawson 2023-10-11 03:54:02 +10:00
parent df1dc0dba2
commit 3b85d07f08

View File

@ -101,7 +101,7 @@ class QgisTestCase(unittest.TestCase):
file_mode = 'ta'
try:
with open(report_file, 'rt', encoding="utf-8") as f:
file_is_empty = not(bool(f.read()))
file_is_empty = not bool(f.read())
except IOError:
pass
else: