Message391936
| 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)) |
|