Home
last modified time | relevance | path

Searched refs:writelines (Results 1 – 25 of 131) sorted by relevance

123456

/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_io.py110 f.writelines([])
113 f.writelines(['one\n', 'two'])
117 f.writelines(['on\xe8\n', 'tw\xf2'])
121 f.writelines([u'on\xe8\n', u'tw\xf2'])
126 f.writelines([S('t\xe8st')])
130 f.writelines([BA('t\xe8st')])
134 f.writelines([U(u't\xe8st')])
139 self.assertRaises(TypeError, f.writelines)
141 self.assertRaises(TypeError, f.writelines, 123)
143 self.assertRaises(TypeError, f.writelines, [123])
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_run.py92 self.assertRaises(OSError, f.writelines, ['x'])
223 f.writelines([])
226 f.writelines(['one\n', 'two'])
230 f.writelines(['on\xe8\n', 'tw\xf2'])
235 f.writelines([S('t\xe8st')])
240 self.assertRaises(TypeError, f.writelines)
242 self.assertRaises(TypeError, f.writelines, 123)
244 self.assertRaises(TypeError, f.writelines, [b'test'])
245 self.assertRaises(TypeError, f.writelines, [123])
247 self.assertRaises(TypeError, f.writelines, [], [])
Dtest_outwin.py102 writelines = self.window.writelines
104 writelines(('Line 1\n', 'Line 2\n', 'Line 3\n'))
/external/python/cpython3/Lib/test/
Dtest_file.py61 self.f.writelines(l)
69 self.assertRaises(TypeError, self.f.writelines, [1, 2, 3])
74 self.assertRaises(TypeError, self.f.writelines, l)
81 self.assertRaises(TypeError, self.f.writelines,
239 bag.writelines(testlines)
Dtest_keyword.py46 fp.writelines(lines[:lines.index(b"#--start keywords--" + nl) + 1])
47 fp.writelines(lines[lines.index(b"#--end keywords--" + nl):])
72 fp.writelines(textwrap.dedent("""\
Dtest_symbol.py21 fp.writelines(lines[:lines.index("#--start constants--\n") + 1])
22 fp.writelines(lines[lines.index("#--end constants--\n"):])
Dtest_fileio.py126 self.f.writelines(l)
134 self.f.writelines(l)
141 self.assertRaises(TypeError, self.f.writelines, [1, 2, 3])
142 self.assertRaises(TypeError, self.f.writelines, None)
143 self.assertRaises(TypeError, self.f.writelines, "abc")
218 self.assertRaises(TypeError, self.f.writelines)
219 self.assertRaises(ValueError, self.f.writelines, b'')
Dtest_iter.py752 self.assertRaises(TypeError, f.writelines, None)
753 self.assertRaises(TypeError, f.writelines, 42)
755 f.writelines(["1\n", "2\n"])
756 f.writelines(("3\n", "4\n"))
757 f.writelines({'5\n': None})
758 f.writelines({})
785 f.writelines(Whatever(6, 6+2000))
/external/python/cpython2/Lib/test/
Dtest_file.py66 self.f.writelines(l)
74 self.assertRaises(TypeError, self.f.writelines, [1, 2, 3])
79 self.assertRaises(TypeError, self.f.writelines, l)
86 self.assertRaises(TypeError, self.f.writelines,
245 bag.writelines(testlines)
Dtest_file2k.py70 self.f.writelines(l)
78 self.assertRaises(TypeError, self.f.writelines, [1, 2, 3])
83 self.assertRaises(TypeError, self.f.writelines, l)
90 self.assertRaises(TypeError, self.f.writelines,
94 self.f.writelines([array('c', 'abc')])
143 self.assertRaises(ValueError, self.f.writelines, [])
162 self.assertRaises(ValueError, self.f.writelines, nasty())
191 self.assertRaises(IOError, self.f.writelines, [data, data])
350 bag.writelines(testlines)
652 self.f.writelines('')
Dtest_fileio.py77 self.f.writelines(l)
85 self.f.writelines(l)
92 self.assertRaises(TypeError, self.f.writelines, [1, 2, 3])
93 self.assertRaises(TypeError, self.f.writelines, None)
148 self.assertRaises(TypeError, self.f.writelines)
149 self.assertRaises(ValueError, self.f.writelines, b'')
Dtest_iter.py705 self.assertRaises(TypeError, f.writelines, None)
706 self.assertRaises(TypeError, f.writelines, 42)
708 f.writelines(["1\n", "2\n"])
709 f.writelines(("3\n", "4\n"))
710 f.writelines({'5\n': None})
711 f.writelines({})
738 f.writelines(Whatever(6, 6+2000))
Dtest_bz2.py180 self.assertRaises(TypeError, bz2f.writelines)
182 bz2f.writelines(sio.readlines())
184 self.assertRaises(ValueError, bz2f.writelines, ["a"])
194 self.assertRaises(IOError, bz2f.writelines, ["a"])
Dtest_memoryio.py98 self.assertEqual(memio.writelines([buf] * 100), None)
100 memio.writelines([])
103 self.assertRaises(TypeError, memio.writelines, [buf] + [1])
105 self.assertRaises(TypeError, memio.writelines, None)
107 self.assertRaises(ValueError, memio.writelines, [])
115 self.assertRaises(KeyboardInterrupt, memio.writelines, error_gen())
471 self.assertRaises(TypeError, memio.writelines, ["1234567890"])
/external/python/cpython2/Tools/freeze/
Dbkfile.py32 self.writelines = self.__file.writelines
/external/clang/tools/scan-build-py/tests/unit/
Dtest_report.py18 handle.writelines(content)
27 handle.writelines(content)
/external/skqp/gn/
Dgn_meta_sln.py21 f.writelines(lines)
168 newProj.writelines(newProjLines)
/external/skia/gn/
Dgn_meta_sln.py21 f.writelines(lines)
168 newProj.writelines(newProjLines)
/external/libchrome/libchrome_tools/
Dinclude_generator.py80 f.writelines([
/external/python/cpython3/PC/layout/support/
Dcatalog.py44 cat.writelines("<HASH>{}={}\n".format(n, f) for n, f in files if can_sign(f))
/external/v8/gypfiles/
Dlandmines.py145 sys.stdout.writelines(diff)
193 f.writelines(new_landmines)
/external/python/cpython2/Lib/
Dcodecs.py372 def writelines(self, list): member in StreamWriter
710 def writelines(self, list): member in StreamReaderWriter
712 return self.writer.writelines(list)
832 def writelines(self, list): member in StreamRecoder
/external/python/cpython3/Lib/
Dcodecs.py380 def writelines(self, list): member in StreamWriter
723 def writelines(self, list): member in StreamReaderWriter
725 return self.writer.writelines(list)
839 def writelines(self, list): member in StreamRecoder
/external/jsoncpp/devtools/
Dfixeol.py23 f.writelines(fixed_lines)
/external/expat/tests/
Dudiffer.py57 sys.stdout.writelines(diffs)

123456