Author serhiy.storchaka
Recipients christian.heimes, erlendaasland, pablogsal, serhiy.storchaka, shreyanavigyan, vstinner
Date 2021-04-26.13:52:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619445147.06.0.192322000211.issue43916@roundup.psfhosted.org>
In-reply-to
Content
test_uninitialised_heap_types.py will need to import unrelited modules (some of which can be platform depending). And more modules will be added as more types be converted. I think it is better to add tests for different modules in corresponding module test files. They are pretty trivial, for example:

    def test_new_tcl_obj(self):
        self.assertRaises(TypeError, _tkinter.Tcl_Obj)

    @requires_curses_func('panel')
    def test_new_curses_panel(self):
        w = curses.newwin(10, 10)
        panel = curses.panel.new_panel(w)
        self.assertRaises(TypeError, type(panel))
History
Date User Action Args
2021-04-26 13:52:27serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, christian.heimes, pablogsal, erlendaasland, shreyanavigyan
2021-04-26 13:52:27serhiy.storchakasetmessageid: <1619445147.06.0.192322000211.issue43916@roundup.psfhosted.org>
2021-04-26 13:52:27serhiy.storchakalinkissue43916 messages
2021-04-26 13:52:27serhiy.storchakacreate