Serhiy Storchaka <[email protected]> added the comment:
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))
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43916>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com