def patchedOpen(self, fname, mode):
        self.assertEqual(fname, "/dev/tty")
        self.assertEqual(mode, "r+b")
        return self.fakeFile
Closes the file-like object.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/test/test_knownhosts.py/DefaultAPITests.patchedOpen--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/file_io/cpio_file_io.py/CPIOFile._Close