<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am trying to implement Ant build.xml script that would include testing Python code using twisted.trial.unittest. When using available pyAntTasks (&lt;py-test&gt; target), I am getting all sorts of errors - even though test scripts complete successfully using Python directly, or using Eclipse's' Run As --&gt; Python unit-test' option.<div><br></div><div>Some errors come from twisted.python.log module, others - I do not even know where from. For example, I am seeing following error:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(250, 100, 0); ">&nbsp;&nbsp;[<span style="text-decoration: underline ; color: #000080">py-test</span>] &nbsp; import pkg_resources</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(250, 100, 0); ">&nbsp; [<span style="text-decoration: underline ; color: #000080">py-test</span>] Traceback (most recent call last):</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(250, 100, 0); ">&nbsp; [<span style="text-decoration: underline ; color: #000080">py-test</span>] &nbsp; File "&lt;stdin&gt;", line 3, in &lt;module&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(250, 100, 0); ">&nbsp; [<span style="text-decoration: underline ; color: #000080">py-test</span>] TypeError: __init__() takes at least 2 arguments (1 given)</div><div><br></div><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I wonder if anyone has Ant (build.xml) code samples of executing Twisted's unittest scripts. Any help would be appreciated.</div><div><br class="Apple-interchange-newline"><br></div><div>Kind regards,</div><div><br></div><div>Val.</div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"> </div><br></div></div></body></html>