aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/testutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index 617a7abc..c8631955 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -38,7 +38,7 @@ class DebianGitTestRepo(unittest.TestCase):
if not os.path.exists(d):
os.makedirs(d)
- with file(path, 'w+') as f:
+ with open(path, 'w+') as f:
content == None or f.write(content)
self.repo.add_files(name, force=True)
self.repo.commit_files(path, msg or "added %s" % name)