This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2015-12-31.15:32:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451575944.98.0.12158451128.issue25983@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-12-31 15:32:25serhiy.storchakasetrecipients: + serhiy.storchaka
2015-12-31 15:32:24serhiy.storchakasetmessageid: <1451575944.98.0.12158451128.issue25983@psf.upfronthosting.co.za>
2015-12-31 15:32:24serhiy.storchakalinkissue25983 messages
2015-12-31 15:32:24serhiy.storchakacreate