Commit graph

10 commits

Author SHA1 Message Date
Alistair Riddoch
3d6f39cdee Modify Property install method to take name
This change also switches DecaysProperty to using delegates as a proof of
concept.
2013-02-13 00:45:36 +00:00
Alistair Riddoch
68494ba520 Use the ruleset global less often, making code more isolated 2012-01-19 19:34:20 +00:00
Alistair Riddoch
75a1c60464 Expect correct errors in script failure tests
Also remove getattro/setattro from the assertion tests, as they are not
even implemented.
2012-01-04 16:31:23 +00:00
Alistair Riddoch
9877c5ffc7 Cover find_mods, added since the test was written
Naughty Al for not adding this at the time.
2011-12-27 17:29:43 +01:00
Alistair Riddoch
f2b8acb83a Converge all property wrapper into one structure
I am following the model layed down in Py_Thing which allows Python
inheritance to work correctly, while keeping pretty good C++ type safety.
2011-12-27 16:23:22 +01:00
Alistair Riddoch
a8dfc319df Implement better type checks in Python wrappers
These now take into account inheritance, allowing simpler code
and better type safety.
2011-12-13 19:39:09 +00:00
Alistair Riddoch
3c86882f42 Add a define to indicate to test code that the main tree was build in debug
This allows testing of assert protection in the main code which is only
included in a debug build, but will crash in an non-debug build
2011-02-16 09:00:40 +00:00
Alistair Riddoch
5cb0ac6ae5 Force asserts on in all tests. 2011-02-15 09:30:46 +00:00
Alistair Riddoch
0658f14751 Convert all Python tests to use macros, so they work with NDEBUG 2009-11-20 20:18:53 +00:00
Alistair Riddoch
d2a0115b77 Add missed file for Py_TerrainProperty test 2009-11-17 00:54:03 +00:00