[pony-build] Fwd: Mock- Testing Question

C. Titus Brown ctb at msu.edu
Sun Mar 7 18:07:57 PST 2010


cool -- sounds like you've done all you can do!

On Sun, Mar 07, 2010 at 03:20:55PM -0600, Fatima Cherkaoui wrote:
> ---------- Forwarded message ----------
> From: Michael Foord <fuzzyman at voidspace.org.uk>
> Date: Sun, Mar 7, 2010 at 3:18 PM
> Subject: Re: Mock- Testing Question
> To: Fatima Cherkaoui <fatizo89 at gmail.com>
> 
> 
>  Hello Fatima,
> 
> 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.
> 
> All the best,
> 
> Michael
> 
> 
> On 07/03/2010 21:17, Fatima Cherkaoui wrote:
> 
> Thank you Micheal for your quick reply.
> 
> It's good to know that the behavior is correct and it's just the test.
> It would be nice to include the magic method support in the 0.7.0 release,
> if possible of course.
> 
> Thanks a lot and have a nice day.
> 
> Fatima
> 
> 
> 
> 
> 
> On Sun, Mar 7, 2010 at 2:55 PM, Michael Foord <fuzzyman at voidspace.org.uk>wrote:
> 
> >  Hello Fatima,
> >
> > I'm afraid that fail is due to a test that I haven't fixed - the behavior
> > is correct, the test isn't.
> >
> > I will try to fix that test as soon as possible, and release the new
> > version of mock shortly afterwards. Unfortunately I can't promise when that
> > will be (it is high up on my list though).
> >
> > Do you need the magic method support in 0.7.0?
> >
> > All the best,
> >
> > Michael
> >
> >
> > On 07/03/2010 20:43, Fatima Cherkaoui wrote:
> >
> > Hello Micheal,
> >
> > I'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.
> >
> > I have written a build script for the Mock package, but one of the tests
> > failed giving me the following error :
> >
> > *3. run tests test - failure (1)
> >
> > command line:['python', 'discover.py']
> > no stdout
> > stderr:
> > ......F...........................................................
> > ====================================================================== FAIL:
> > testMagicMethodWrapping (tests.testmagicmethods.TestMockingMagicMethods)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last): File
> > "c:\users\fatima\appdata\local\temp\tmp3ofow4\mock-read-only\tests\testmagicmethods.py",
> > line 47, in testMagicMethodWrapping
> > self.assertEqual(inspect.getargspec(mock.__getitem__),
> > inspect.getargspec(f)) AssertionError: ArgSpec(args=['name'], varargs=None,
> > keywords=None, defaults=None) != ArgSpec(args=['self', 'name'],
> > varargs=None, keywords=None, defaults=None)
> > ---------------------------------------------------------------------- Ran
> > 66 tests in 0.015s FAILED (failures=1)
> > *
> > http://lyorn.idyll.org/ctb/pb-dev/p/build-mock/18277/
> >
> > I have also tried running the tests directly outside of pony-build and got
> > the same error message.
> > I'm using  Windows 7 Enterprise and Python 2.6.4 .
> >
> > I saw your fix for fetching magic methods
> > http://code.google.com/p/mock/source/diff?spec=svn120&r=119&format=side&path=/trunk/mock.py&old_path=/trunk/mock.py&old=113and I would like to know when the Mock version 0.7.0 will be released.
> >
> > Thank you for your help.
> >
> > Fatima
> >
> >
> >
> >
> > --
> >
> > Fatima-Zohra Cherkaoui
> >
> >
> >
> >  -- http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog
> >
> > 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.
> >
> >
> >
> >
> 
> 
> -- 
> 
> Fatima-Zohra Cherkaoui
> 
> 
> 
> -- http://www.ironpythoninaction.com/http://www.voidspace.org.uk/blog
> 
> 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.
> 
> 
> 
> 
> 
> -- 
> 
> Fatima-Zohra Cherkaoui

> _______________________________________________
> pony-build mailing list
> pony-build at lists.idyll.org
> http://lists.idyll.org/listinfo/pony-build


-- 
C. Titus Brown, ctb at msu.edu



More information about the pony-build mailing list