<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 01/03/2010 16:14, P.J. Eby wrote:
<blockquote
 cite="mid:20100301161407.691153A40A7@sparrow.telecommunity.com"
 type="cite">At 01:37 PM 3/1/2010 +0000, Michael Foord wrote:
  <br>
  <blockquote type="cite">On 01/03/2010 13:32, Olemis Lang wrote:
    <br>
    <blockquote type="cite">On Sat, Feb 27, 2010 at 2:33 PM, Michael
Foord
      <br>
<a class="moz-txt-link-rfc2396E" href="mailto:fuzzyman@voidspace.org.uk">&lt;fuzzyman@voidspace.org.uk&gt;</a>&nbsp; wrote:
      <br>
      <br>
      <blockquote type="cite">On 27/02/2010 19:22, C. Titus Brown
wrote:
        <br>
        <br>
        <br>
      </blockquote>
[...]
      <br>
      <br>
      <blockquote type="cite">Olemis was confused as to what setuptools
did - it does not support a
        <br>
callable for the test_suite argument.
        <br>
        <br>
        <br>
      </blockquote>
I was terribly wrong about `suite` and `unittest`, yes, however if
      <br>
there's something wrong with the following snippet
      <br>
      <br>
    </blockquote>
    <br>
According to the setuptools documentation the test_suite argument *can*
be a callable. So you were right about that and Phillip was wrong!
    <br>
  </blockquote>
  <br>
I never said it couldn't be a callable.&nbsp; Olemis was asking for a
*parameterized* callable, for *test_runner* -- not test_suite.&nbsp;
Entirely different kettle of fish.
  <br>
  <br>
The test_suite argument supports whatever the unittest command line
does, and that includes methods, modules, classes, and arbitrary
callables.
  <br>
</blockquote>
No he was asking about, and your reply was about, test_suite - although
the *specific* issue of whether it could be a callable wasn't
addresses. You said:<br>
<blockquote type="cite">
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <div class="im"><br>
  </div>
No. &nbsp;<span class="il">test_suite</span> is to be an object recognized
by the test_loader as convertible to a unittest TestSuite. &nbsp;For
example, a module, TestCase subclass, etc.</blockquote>
However it turns out that unittest.main() *does* allow you to specify a
callable, which I didn't think was the case. That does put a different
slant on things.<br>
<br>
All the best,<br>
<br>
Michael<br>
<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (&#8221;BOGUS AGREEMENTS&#8221;) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

</pre>
</body>
</html>