shunwang / numexpr

Automatically exported from code.google.com/p/numexpr
MIT License
0 stars 0 forks source link

return TestResult in numexpr.test() #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run python -c "import numexpr; numexpr.test()"
2. If a test fails, there's text output but no return value
3.

What is the expected output? What do you see instead?
It would be nice to see a return value.
Being able to do something like this is useful: 'python -c "import numexpr,sys; 
numexpr.test().wasSuccessful() or sys.exit(1)"

What version of the product are you using? On what operating system?
2.1

Please provide any additional information below.
In test_numexpr.test, changing 
unittest.TextTestRunner().run(suite())
to
return unittest.TextTestRunner().run(suite())
will accomplish this.

Original issue reported on code.google.com by chetanre...@gmail.com on 28 Aug 2013 at 11:47

GoogleCodeExporter commented 9 years ago
Added in rev https://faltet@code.google.com/p/numexpr/.  Thanks.

Original comment by fal...@gmail.com on 29 Aug 2013 at 7:42