Did I find the right examples for you? yes no

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)

src/i/r/ironpython3-HEAD/Src/StdLib/Lib/test/test_io.py   ironpython3(Download)
                               'uninitialized|has no attribute',
                               pair.write, b'')
        pair.__init__(self.MockRawIO(), self.MockRawIO())
        self.assertEqual(pair.read(0), b'')
        self.assertEqual(pair.write(b''), 0)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")
    def test_rawio(self):
        # Issue #12591: TextIOWrapper must work with raw I/O objects, so
        # that subprocess.Popen() can have the required unbuffered
        # semantics with universal_newlines=True.
        raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n'])
    def test_rawio_write_through(self):
        # Issue #12591: with write_through=True, writes don't need a flush
        raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n'])
        txt = self.TextIOWrapper(raw, encoding='ascii', newline='\n',
                                 write_through=True)

src/c/p/cpython-HEAD/Lib/test/test_io.py   cpython(Download)
                               'uninitialized|has no attribute',
                               pair.write, b'')
        pair.__init__(self.MockRawIO(), self.MockRawIO())
        self.assertEqual(pair.read(0), b'')
        self.assertEqual(pair.write(b''), 0)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")
    def test_rawio(self):
        # Issue #12591: TextIOWrapper must work with raw I/O objects, so
        # that subprocess.Popen() can have the required unbuffered
        # semantics with universal_newlines=True.
        raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n'])
    def test_rawio_write_through(self):
        # Issue #12591: with write_through=True, writes don't need a flush
        raw = self.MockRawIO([b'abc', b'def', b'ghi\njkl\nopq\n'])
        txt = self.TextIOWrapper(raw, encoding='ascii', newline='\n',
                                 write_through=True)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/test/test_io.py   main(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/test/test_io.py   main(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/test/test_io.py   pytaint(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/p/y/Py2crazy-HEAD/Python-2.7.5/Lib/test/test_io.py   Py2crazy(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/e/m/empythoned-HEAD/cpython/Lib/test/test_io.py   empythoned(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/g/i/gitstack-HEAD/python/Lib/test/test_io.py   gitstack(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/p/y/PyAutoC-HEAD/Python27/Lib/test/test_io.py   PyAutoC(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

src/p/y/PyCPython-HEAD/Python-2.7.1/Lib/test/test_io.py   PyCPython(Download)
    def test_write(self):
        w = self.MockRawIO()
        pair = self.tp(self.MockRawIO(), w)
 
        pair.write(b"abc")

  1 | 2  Next