qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

how to use doctest in qpython #158

Open anbency opened 7 years ago

anbency commented 7 years ago

I'm trying to use doctest in qpython. But the script didn't work , which it it ok in PC enviroment.

It is just two line different with the my script in PC enviroment: import sl4a droid = sl4a.Android()

After run the script in qpython, I can see the log of docctest, but the test case seems not be tested. The msg I got is : 11 items had no tests: ... 0 tests in 11 items. 0 passed and 0 faied. Test passed

Is there any important things I missed? Thans for your help!

riverfor commented 7 years ago

You need to use androidhelper instead sl4a in QPython