def METHOD_NAME(self) -> None:
    self.make_file("bad.db", "boogers")
    def fake_failing_open(filename: str, mode: str) -> NoReturn:
        assert (filename, mode) == ("bad.db", "rb")
        raise RuntimeError("No you can't!")
    with mock.patch.object(coverage.sqlitedb, "open", fake_failing_open):
        msg = "Couldn't use data file 'bad.db': file is not a database"
        with pytest.raises(DataError, match=msg):
            with SqliteDb("bad.db", DebugControlString(options=["sql"])):
                pass    # pragma: not covered