New submission from Nikita Sobolev <m...@sobolevn.me>:
Right now this test uses `try: ... except TypeError: ...` to ensure that mro is consistent. This has a flaw: code in `try` might not ever raise and this test would still pass. I will refactor it to use `self.assertRaises` to be 100% sure. ---------- components: Tests messages: 406829 nosy: sobolevn priority: normal severity: normal status: open title: Use `self.assertRaises` instead of `try/except` in `ctypes/test_functions.py::test_mro` type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45878> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com