[New-bugs-announce] [issue25983] Add tests for multi-argument type()

Serhiy Storchaka report at bugs.python.org
Thu Dec 31 10:32:24 EST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue25983>
_______________________________________


More information about the New-bugs-announce mailing list