summaryrefslogtreecommitdiff
path: root/tests/basics/class_new.py
AgeCommit message (Collapse)Author
2017-09-01tests/class_new: Add another testcase for __new__/__init__ interaction.Paul Sokolovsky
Similar to the existing testcase, but test that returning both value of native type and instance of another user class from __new__ lead to __init__ not being called, for better coverage.
2017-08-30tests/class_new: Add checks for __init__ being called and other improvements.Paul Sokolovsky
2017-06-10tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky
2017-02-15tests/basic/[a-f]*: Make skippable.Paul Sokolovsky
For small ports which don't have all features enabled.
2015-08-21tests: Add more tests to improve coverage, mostly testing exceptions.Damien George
2014-07-05py: Automatically ake __new__ a staticmethod.Damien George
Addresses issue #622.
2014-05-22py: Initial attempts to actually allow implementing __new__ in Python.Paul Sokolovsky
Caveat is that __new__ should recurse to base class __new__, and ultimately, object.__new__ is what handles instance allocation.