'Test that setting a small icon doesn\'t produce a crash.
Regression test for #1015.'

def test_small_icon_doesnt_crash(self, widget, qtbot, fake_web_tab):

    pixmap = QPixmap(72, 1)
    icon = QIcon(pixmap)
    tab = fake_web_tab()
    widget.addTab(tab, icon, 'foobar')
    with qtbot.waitExposed(widget):
        widget.show()
