<div dir="ltr">It seems that you can't do this. Qt handles QuickTest specially. It won’t load the package if the program is not started via QUICK_TEST_MAIN.<div><br></div><div>Is this something that PyQt5 is missing because there is no sip wrapper for QUICK_TEST_MAIN?</div><div><br></div><div>Is there another way to run QML tests with a type registered in Python?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 1:29 PM, Cody Scott <span dir="ltr"><<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm not even sure if this PyQt5 code should work. I believe an equivalent program in C++ would use <a href="http://doc.qt.io/qt-5/qtquick-qtquicktest.html#running-tests" target="_blank">http://doc.qt.io/qt-5/<wbr>qtquick-qtquicktest.html#<wbr>running-tests</a> so <div><br></div><div>As far as I can tell PyQt5 is missing an equivalent of QUICK_TEST_MAIN.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 12:13 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 15 Feb 2017, at 9:44 pm, Cody Scott <<a href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>> wrote:<br>
><br>
> Hey Phil,<br>
><br>
> Thanks for releasing PyQt5==5.8!<br>
><br>
> I just tried with the new wheels and I get<br>
><br>
> module "Qt.test.qtestroot" is not installed<br>
><br>
> <a href="https://gist.github.com/Siecje/c93f4faf15baa89d4fd0c9ff86d22a6a" rel="noreferrer" target="_blank">https://gist.github.com/Siecje<wbr>/c93f4faf15baa89d4fd0c9ff86d22<wbr>a6a</a><br>
<br>
</span>I get the same problem with an original Qt from the on-line installers. That suggests a Qt (packaging?) bug.<br>
<span class="m_7220849084443849419HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>