Message391936
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)) |
|
Date |
User |
Action |
Args |
2021-04-26 13:52:27 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, christian.heimes, pablogsal, erlendaasland, shreyanavigyan |
2021-04-26 13:52:27 | serhiy.storchaka | set | messageid: <1619445147.06.0.192322000211.issue43916@roundup.psfhosted.org> |
2021-04-26 13:52:27 | serhiy.storchaka | link | issue43916 messages |
2021-04-26 13:52:27 | serhiy.storchaka | create | |
|