New submission from Serhiy Storchaka: I had not added tests for issue25961 because couldn't find a good place for adding new tests. It looks that there are no special tests for creating new type with type() at all.
Proposed patch adds separate class with tests in test_builtin (may be this is not the best place, I'm not sure). They test type() with valid and invalid arguments, and also test setting some attributes, because error handling should be consistent for constructor and setters. There are some of setting tests in test_descr, but this doesn't look a good place for testing the constructor. ---------- components: Tests files: type_tests.patch keywords: patch messages: 257257 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Add tests for multi-argument type() type: enhancement versions: Python 2.7, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file41461/type_tests.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25983> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com