Re: [pypy-dev] custom classes in applevel tests

2012-04-28 Thread Benjamin Peterson
2012/4/28 Timo Paulssen : > Hello there, > > I was writing a few test cases for numpypy to make sure it behaves like > numpy does when confronted with objects that have either an __int__, an > __index__ or both (rule of thumb: index is prefered, but int is accepted in > absence of index). > > Now,

[pypy-dev] custom classes in applevel tests

2012-04-28 Thread Timo Paulssen
Hello there, I was writing a few test cases for numpypy to make sure it behaves like numpy does when confronted with objects that have either an __int__, an __index__ or both (rule of thumb: index is prefered, but int is accepted in absence of index). Now, I wrote six tests that use three cus

[pypy-dev] custom classes in applevel tests

2012-04-28 Thread Timo Paulssen
Hello there, I was writing a few test cases for numpypy to make sure it behaves like numpy does when confronted with objects that have either an __int__, an __index__ or both (rule of thumb: index is prefered, but int is accepted in absence of index). Now, I wrote six tests that use three cus