We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 544a20f commit 5e29865Copy full SHA for 5e29865
test/pseudo-tty/testcfg.py
@@ -32,6 +32,11 @@
32
import re
33
import utils
34
35
+try:
36
+ xrange # Python 2
37
+except NameError:
38
+ xrange = range # Python 3
39
+
40
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
41
42
class TTYTestCase(test.TestCase):
@@ -51,7 +56,7 @@ def IgnoreLine(self, str):
51
56
else: return str.startswith('==') or str.startswith('**')
52
57
53
58
def IsFailureOutput(self, output):
54
- f = file(self.expected)
59
+ f = open(self.expected)
55
60
# Convert output lines to regexps that we can match
61
env = { 'basename': basename(self.file) }
62
patterns = [ ]
0 commit comments