Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/pacman/pactest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/pactest.py')
-rwxr-xr-xtest/pacman/pactest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py
index 1f5b8483..85cce6a1 100755
--- a/test/pacman/pactest.py
+++ b/test/pacman/pactest.py
@@ -1,4 +1,4 @@
-#! /usr/bin/python2
+#! /usr/bin/python3
#
# pactest : run automated testing on the pacman binary
#
@@ -45,7 +45,8 @@ class MultiWriter():
# duplicate stdout/stderr to a temporary file
class OutputSaver():
def __init__(self):
- self.save_file = tempfile.NamedTemporaryFile(prefix='pactest-output-')
+ self.save_file = tempfile.NamedTemporaryFile(
+ prefix='pactest-output-', mode='w')
def __enter__(self):
sys.stdout = MultiWriter(sys.stdout, self.save_file)