Ed Campbell added the comment: I'd suggest using unittest.TestCase.assertRaises() as a context manager to remove some try-excepts. For example I think function test_userptr_without_set() on line 245 could use:
with self.assertRaises(curses.panel.error): p.userptr() I could create a patch if it would help. ---------- nosy: +esc24 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16000> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com