'Test that `__file__` is set when running `ipython file.ipy`'

def test_ipy_script_file_attribute(self):

    src = 'print(__file__)\n'
    self.mktmp(src, ext='.ipy')
    err = (SQLITE_NOT_AVAILABLE_ERROR if sqlite_err_maybe else None)
    tt.ipexec_validate(self.fname, self.fname, err)
