aboutsummaryrefslogtreecommitdiff
path: root/tests/testutils/debiangittestrepo.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-09 10:41:19 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-12 08:52:07 +0200
commitd1c163401153329363a010373cb512f8e59ef1e2 (patch)
tree4360253804301e13b626a47d3ee9b7740dc9fbec /tests/testutils/debiangittestrepo.py
parentf7db3b77c491e5f76f441a1155aa87b1e5dedde6 (diff)
pep8/pyflakes cleanups
Diffstat (limited to 'tests/testutils/debiangittestrepo.py')
-rw-r--r--tests/testutils/debiangittestrepo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testutils/debiangittestrepo.py b/tests/testutils/debiangittestrepo.py
index 09bf8a70..9a9ee07d 100644
--- a/tests/testutils/debiangittestrepo.py
+++ b/tests/testutils/debiangittestrepo.py
@@ -7,6 +7,7 @@ import unittest
import gbp.deb.git
+
class DebianGitTestRepo(unittest.TestCase):
"""Scratch repo for a single unit test"""
@@ -39,6 +40,6 @@ class DebianGitTestRepo(unittest.TestCase):
os.makedirs(d)
with open(path, 'w+') as f:
- content == None or f.write(content)
+ content is None or f.write(content)
self.repo.add_files(name, force=True)
self.repo.commit_files(path, msg or "added %s" % name)