We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 022599c commit a5c8af7Copy full SHA for a5c8af7
test/message/testcfg.py
@@ -31,6 +31,16 @@
31
from os.path import join, exists, basename, isdir
32
import re
33
34
+try:
35
+ reduce # Python 2
36
+except NameError: # Python 3
37
+ from functools import reduce
38
+
39
40
+ xrange # Python 2
41
+except NameError:
42
+ xrange = range # Python 3
43
44
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
45
46
class MessageTestCase(test.TestCase):
@@ -49,7 +59,7 @@ def IgnoreLine(self, str):
49
59
else: return str.startswith('==') or str.startswith('**')
50
60
51
61
def IsFailureOutput(self, output):
52
- f = file(self.expected)
62
+ f = open(self.expected)
53
63
# Skip initial '#' comment and spaces
54
64
#for line in f:
55
65
# if (not line.startswith('#')) and (not line.strip()):
0 commit comments