Back to index

python3.2  3.2.2
Classes | Namespaces | Functions
test_fileinput.py File Reference

Go to the source code of this file.

Classes

class  test.test_fileinput.BufferSizesTests
class  test.test_fileinput.FileInputTests

Namespaces

namespace  test.test_fileinput

Functions

def test.test_fileinput.writeTmp
def test.test_fileinput.remove_tempfiles
def test.test_fileinput.test_fileno
 def test_unicode_filenames(self):

XXX A unicode string is always returned by writeTmp.


def test.test_fileinput.test_opening_mode
def test.test_fileinput.test_file_opening_hook
def test.test_fileinput.test_context_manager
 try: t1 = writeTmp(1, ["A\nB"], mode="wb") fi = FileInput(files=t1, openhook=hook_encoded("rot13")) lines = list(fi) self.assertEqual(lines, ["N\n", "O"]) finally: remove_tempfiles(t1)
def test.test_fileinput.test_close_on_exception
def test.test_fileinput.test_main