def CheckNoWrite(self):
        init_LogFile()
        del LogFile.write
        logger = LogFile()
        try:
            self.cnx = sqlite.connect(self.getfilename(),
                command_logfile=logger)

            self.fail("ValueError not raised")
        except __HOLE__:
            pass
dataset/ETHPy150Open sassoftware/conary/conary/pysqlite3/test/logging_tests.py/CommandLoggingTests.CheckNoWrite