CIA.vc
michael.foord
Real-time open source activity stats
Stats » Authors » michael.foord
informationsyndicateUTC clock
06:32 on May 28, 2012
event counters
The last message was received 2.52 weeks ago at 15:18 on May 10, 2012
0 messages so far today, 0 messages yesterday
0 messages so far this week, 0 messages last week
1 messages so far this month, 19 messages last month
870 messages since the first one, 3.16 years ago, for an average of 1.32 days between messages
recent messages
dateReversed sort columnprojectcontentlink
15:18 on May 10Python
Commit by michael.foord on roundup :: #14770/Minor documentation fixes: (link)
[new] A bunch of minor fixes for the documentation suggested by Kurt Robinson to the webmaster email address:


 Below, you will find 15 snippet ...
#
20:12 on Apr 30Python
Commit by michael.foord on roundup :: #14558/Documentation for unittest.main does not describe some keyword arguments.: (link)
A good change - thanks Ezio.
#
19:48 on Apr 25Python
Commit by michael.foord on roundup :: #14664/Skipping a test mixin gives metaclass error: (link)
Thanks Antoine - much appreciated.
#
17:49 on Apr 25Python
Commit by michael.foord on roundup :: #14664/Skipping a test mixin gives metaclass error: (link)
This could go into 2.7 too.
#
01:47 on Apr 25Python
Commit by michael.foord on roundup :: #14664/Skipping a test mixin gives metaclass error: (link)
Patch looks good - thanks.
#
21:16 on Apr 21Python
Commit by michael.foord on roundup :: #14634/Mock cannot autospec functions with keyword-only arguments.: (link)
Hmmm... looks like formatargspec does support these features but they aren't documented. If it works out I'll update the docs for inspect.formatar ...
#
20:55 on Apr 21Python
Commit by michael.foord on roundup :: #14634/Mock cannot autospec functions with keyword-only arguments.: (link)
This is non-trivial to fix. Although inspect.getfullargspec can be used, which does support keyword only arguments, inspect.formatargspec *doesn't ...
#
18:25 on Apr 21Python
Commit by michael.foord on roundup :: #7559/TestLoader.loadTestsFromName swallows import errors: (link)
My favoured fix is to catch the exception and generate a failing test that re-raises the *original exception* (with traceback) when run. That way ...
#
02:43 on Apr 21Python
Commit by michael.foord on roundup :: #14636/Mock could check for exceptions in side effect list: (link)
Seems like a good change.
#
17:16 on Apr 18Python
Commit by michael.foord on roundup :: #14613/time.time can return None or NaN: (link)
So NaN is a possible result from time.time()? Perhaps that should be mentioned in the docs. Is returning NaN preferable to failing with an exception?
#
16:30 on Apr 18Python
Commit by michael.foord on roundup :: #14613/time.time can return None or NaN: (link)
[new] time.time() can return None, or sometimes NaN. If it can't get a "proper" value from the OS then I would expect it to throw an exception. Th ...
#
15:54 on Apr 14Python
Commit by michael.foord on roundup :: #14577/pickling uses __class__ so you can't pickle proxy/mock objects that pretend to be other objects: (link)
Nick - in general proxy objects have a *reference* to their target (weakref being somewhat of a special case), and pickle can already handle multi ...
#
15:41 on Apr 14Python
Commit by michael.foord on roundup :: #14577/pickling uses __class__ so you can't pickle proxy/mock objects that pretend to be other objects: (link)
test_pickle still passes with only copyreg.py modified.

 With one additional change in pickle.py (line 405 to use type(obj) instead of obj.__cl ...
#
15:30 on Apr 14Python
Commit by michael.foord on roundup :: #14577/pickling uses __class__ so you can't pickle proxy/mock objects that pretend to be other objects: (link)
So, changing copyreg.py to use type(self) instead of self.__class__ isn't sufficient. _pickle accesses __class__ as well it seems. However I'm run ...
#
15:18 on Apr 14Python
Commit by michael.foord on roundup :: #14577/pickling uses __class__ so you can't pickle proxy/mock objects that pretend to be other objects: (link)
[new] Pickling uses __class__ instead of type(obj) to determine the type to pickle. This means that objects which pretend to be other objects (lik ...
#
01:07 on Apr 14Python
Commit by michael.foord on roundup :: #11218/pattern=None when following documentation for load_tests and unittest.main(): (link)
Also the patch to allow the pattern to be None (and revert to the default pattern in this case) looks good.
#
01:06 on Apr 14Python
Commit by michael.foord on roundup :: #11218/pattern=None when following documentation for load_tests and unittest.main(): (link)
So the logic of the "pattern" argument to "load_tests" is that it should not be None when test discovery is loading the __init__.py module of a te ...
#
00:45 on Apr 10Python
Commit by michael.foord on roundup :: #14534/Add method to mark unittest.TestCases as "do not run".: (link)
Here are my objections to the standard (but not widely used outside our own tests) mixin pattern for base testcases (copied and pasted from issue ...
#
00:41 on Apr 10Python
Commit by michael.foord on roundup :: #14534/Add method to mark unittest.TestCases as "do not run".: (link)
So the technique I suggested is that the TestLoader checks classes for the "testbase" (or whatever we call it) *in the class dict*. So inheritance ...
#
03:37 on Apr 09Python
Commit by michael.foord on roundup :: #14533/Modify regrtest to make test_main optional: (link)
Looks good to me. Note that if module level setup and teardown is needed for running tests then it should be possible to do this with setUpModule ...
#