Home
last modified time | relevance | path

Searched refs:readlines (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_run.py135 self.assertRaises(TypeError, f.readlines, 1.5)
136 self.assertRaises(TypeError, f.readlines, '1')
137 self.assertRaises(TypeError, f.readlines, 1, 1)
143 self.assertEqual(f.readlines(), ['one\n', 'two\n'])
145 self.assertEqual(f.readlines(-1), ['one\n', 'two\n'])
147 self.assertEqual(f.readlines(None), ['one\n', 'two\n'])
149 self.assertEqual(f.readlines(0), ['one\n', 'two\n'])
151 self.assertEqual(f.readlines(3), ['one\n'])
153 self.assertEqual(f.readlines(4), ['one\n', 'two\n'])
156 self.assertRaises(TypeError, f.readlines, 1.5)
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_io.py226 self.assertRaises(TypeError, f.readlines, 1.5)
227 self.assertRaises(TypeError, f.readlines, '1')
228 self.assertRaises(TypeError, f.readlines, 1, 1)
234 self.assertEqual(f.readlines(), ['one\n', 'two\n'])
236 self.assertEqual(f.readlines(-1), ['one\n', 'two\n'])
238 self.assertEqual(f.readlines(None), ['one\n', 'two\n'])
240 self.assertEqual(f.readlines(0), ['one\n', 'two\n'])
242 self.assertEqual(f.readlines(3), ['one\n'])
244 self.assertEqual(f.readlines(4), ['one\n', 'two\n'])
247 self.assertRaises(TypeError, f.readlines, 1.5)
[all …]
/external/python/cpython2/Lib/test/
Dtest_bz2.py103 for line in sio.readlines():
110 self.assertRaises(TypeError, bz2f.readlines, None)
112 self.assertEqual(bz2f.readlines(), sio.readlines())
119 self.assertEqual(list(iter(bz2f)), sio.readlines())
130 self.assertRaises(ValueError, bz2f.readlines)
137 self.assertEqual(list(bz2f.xreadlines()), sio.readlines())
182 bz2f.writelines(sio.readlines())
271 lines = bz2f.readlines()
274 xlines = list(bz2f.readlines())
323 self.assertRaises(ValueError, f.readlines)
Dtest_StringIO.py33 eq(len(self._fp.readlines(60)), 2)
128 self.assertEqual(f.readlines(), lines)
129 self.assertEqual(f.readlines(), [])
131 self.assertEqual(f.readlines(size), lines)
132 self.assertEqual(f.readlines(), [])
Dtest_univnewlines2k.py57 data = fp.readlines()
75 data = fp.readlines()
78 data = fp.readlines()
Dtest_univnewlines.py67 data = fp.readlines()
85 data = fp.readlines()
88 data = fp.readlines()
/external/python/cpython3/Lib/test/
Dtest_symbol.py19 lines = fp.readlines()
34 lines1 = fp.readlines()
36 lines2 = fp.readlines()
Dtest_univnewlines.py66 data = fp.readlines()
84 data = fp.readlines()
87 data = fp.readlines()
/external/python/cpython2/Tools/scripts/
Dndiff.py74 a = f1.readlines(); f1.close()
75 b = f2.readlines(); f2.close()
120 restored = difflib.restore(sys.stdin.readlines(), which)
/external/python/cpython3/Tools/scripts/
Dndiff.py74 a = f1.readlines(); f1.close()
75 b = f2.readlines(); f2.close()
120 restored = difflib.restore(sys.stdin.readlines(), which)
Ddiff.py44 fromlines = ff.readlines()
46 tolines = tf.readlines()
/external/libxml2/python/
Dsetup.py.in113 for line in head.readlines():
118 for line in generated.readlines():
138 for line in head.readlines():
143 for line in generated.readlines():
/external/python/mock/mock/tests/
Dtestwith.py219 result = h.readlines()
227 result = h.readlines()
256 result = f.readlines()
275 rest = h.readlines()
294 handle.readlines.return_value = ['bar']
298 self.assertEqual(handle.readlines(), ['bar'])
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py243 result = h.readlines()
251 result = h.readlines()
280 result = f.readlines()
299 rest = h.readlines()
318 handle.readlines.return_value = ['bar']
322 self.assertEqual(handle.readlines(), ['bar'])
/external/libxml2/
Dbuild_glob.py31 global_data=open("global.data").readlines()
32 global_code=open("globals.c").readlines()
33 global_hdr=open("include/libxml/globals.h").readlines()
/external/toolchain-utils/binary_search_tool/test/
Dis_good_noinc_prune.py22 num_good_args = len(good_args.readlines())
25 num_bad_args = len(bad_args.readlines())
/external/pdfium/testing/tools/
Dtext_diff.py17 str1 = f1.readlines();
19 str2 = f2.readlines();
/external/expat/tests/
Dudiffer.py39 return f.readlines()
42 return f.readlines()
/external/python/cpython2/Tools/framer/
Dexample.py73 def readlines(self, hint): member in cStringIO.InputType
75 readlines.pyarg = "|i"
/external/freetype/builds/mac/
Dascii2mpw.py6 for asc_line in sys.stdin.readlines():
16 for mpw_line in sys.stdin.readlines():
/external/scapy/scapy/arch/bpf/
Dcore.py73 addresses = [l for l in fd.readlines() if l.find("ether") >= 0 or
112 lines = f.readlines()
135 interfaces = [line[:line.find(':')] for line in fd.readlines()
/external/ltp/testcases/network/nfsv4/acl/
Drandom_gen.py77 lines = f.readlines()
99 lines = f.readlines()
118 lines = f.readlines()
131 lines = f.readlines()
/external/swiftshader/third_party/SPIRV-Tools/test/scripts/
Dtest_compact_ids.py41 converted_dis = f.readlines()[3:]
44 optimized_dis = f.readlines()[3:]
/external/deqp-deps/SPIRV-Tools/test/scripts/
Dtest_compact_ids.py41 converted_dis = f.readlines()[3:]
44 optimized_dis = f.readlines()[3:]
/external/autotest/client/bin/
Dos_dep.py28 for line in open('/etc/ld.so.conf', 'r').readlines():
36 for conf_file_line in open(conf_file, 'r').readlines():

12345678910>>...18