fix widget-import-warning test

which wasn't updated with warning changes in #7200, #7201. Travis should be happy after this one.