<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Michael Foord</b> <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt;</span><br>
Date: Sun, Mar 7, 2010 at 3:18 PM<br>Subject: Re: Mock- Testing Question<br>To: Fatima Cherkaoui &lt;<a href="mailto:fatizo89@gmail.com">fatizo89@gmail.com</a>&gt;<br><br><br>


  

<div bgcolor="#ffffff" text="#000000">
Hello Fatima,<br>
<br>
Yes, the magic method support will be the main focus of the 0.7.0
release. There are quite a few outstanding feature requests that I
should at least look through before the release though.<br>
<br>
All the best,<br><font color="#888888">
<br>
Michael</font><div><div></div><div class="h5"><br>
<br>
On 07/03/2010 21:17, Fatima Cherkaoui wrote:
<blockquote type="cite">Thank you Micheal for your quick reply.<br>
  <br>
It&#39;s good to know that the behavior is correct and it&#39;s just the test.<br>
It would be nice to include the magic method support in the 0.7.0
release, if possible of course.<br>
  <br>
Thanks a lot and have a nice day.<br>
  <br>
Fatima<br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <div class="gmail_quote">On Sun, Mar 7, 2010 at 2:55 PM, Michael
Foord <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk" target="_blank">fuzzyman@voidspace.org.uk</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
Hello Fatima,<br>
    <br>
I&#39;m afraid that fail is due to a test that I haven&#39;t fixed - the
behavior is correct, the test isn&#39;t.<br>
    <br>
I will try to fix that test as soon as possible, and release the new
version of mock shortly afterwards. Unfortunately I can&#39;t promise when
that will be (it is high up on my list though).<br>
    <br>
Do you need the magic method support in 0.7.0?<br>
    <br>
All the best,<br>
    <br>
Michael
    <div>
    <div><br>
    <br>
On 07/03/2010 20:43, Fatima Cherkaoui wrote:
    <blockquote type="cite">Hello Micheal, <br>
      <br>
I&#39;m part of the pony-build project under the supervision of Titus C.
Brown, and was wondering if you could help me with the following
problem related to the Mock package.<br>
      <br>
I have written a build script for the Mock package, but one of the
tests failed giving me the following error : <br>
      <br>
      <b style="font-family: times new roman,serif;"><a name="1273a7ea08fd68d6_1273a68f07b1293d_2">3. run tests test - <font color="red">failure
(1)</font> <br>
      <br>
command line:[&#39;python&#39;, &#39;discover.py&#39;]<br>
      <i>no stdout</i><br>
stderr:
      <div>......F...........................................................
======================================================================
FAIL:
testMagicMethodWrapping
(tests.testmagicmethods.TestMockingMagicMethods)
----------------------------------------------------------------------
Traceback
(most
recent call last): File
&quot;c:\users\fatima\appdata\local\temp\tmp3ofow4\mock-read-only\tests\testmagicmethods.py&quot;,
line
47,
in testMagicMethodWrapping
self.assertEqual(inspect.getargspec(mock.__getitem__),
inspect.getargspec(f))
AssertionError: ArgSpec(args=[&#39;name&#39;], varargs=None, keywords=None,
defaults=None) != ArgSpec(args=[&#39;self&#39;, &#39;name&#39;], varargs=None,
keywords=None, defaults=None)
----------------------------------------------------------------------
Ran 66 tests in 0.015s
FAILED (failures=1) </div>
      </a></b><br clear="all">
      <a href="http://lyorn.idyll.org/ctb/pb-dev/p/build-mock/18277/" target="_blank">http://lyorn.idyll.org/ctb/pb-dev/p/build-mock/18277/</a><br>
      <br>
I have also tried running the tests directly outside of pony-build and
got the same error message. <br>
I&#39;m using  Windows 7 Enterprise and Python 2.6.4 .<br>
      <br>
I saw your fix for fetching magic methods <a href="http://code.google.com/p/mock/source/diff?spec=svn120&amp;r=119&amp;format=side&amp;path=/trunk/mock.py&amp;old_path=/trunk/mock.py&amp;old=113" target="_blank">http://code.google.com/p/mock/source/diff?spec=svn120&amp;r=119&amp;format=side&amp;path=/trunk/mock.py&amp;old_path=/trunk/mock.py&amp;old=113</a>
and I would like to know when the Mock version 0.7.0 will be released.<br>
      <br>
Thank you for your help.<br>
      <br>
Fatima<br>
      <pre>  </pre>
      <br>
      <br>
      <br>
-- <br>
      <br>
Fatima-Zohra Cherkaoui<br>
      <br>
    </blockquote>
    <br>
    <br>
    </div>
    </div>
    <pre cols="72">-- 
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a>
<a href="http://www.voidspace.org.uk/blog" target="_blank">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 (”BOGUS AGREEMENTS”) 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>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
  <br>
Fatima-Zohra Cherkaoui<br>
  <br>
</blockquote>
<br>
<br>
<pre cols="72">-- 
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a>
<a href="http://www.voidspace.org.uk/blog" target="_blank">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 (”BOGUS AGREEMENTS”) 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>
</div></div></div>

</div><br><br clear="all"><br>-- <br><br>Fatima-Zohra Cherkaoui<br><br>