Voidspace - voidspace.org.uk - The Voidspace Techie Blog

Latest News:

unittest.mock and mock 1.0 alpha 1 29 Mar 2012 | 05:15 am

One of the results of the Python Language Summit at PyCon 2012 is that mock is now in the Python standard library. In Python 3.3 mock is available as unittest.mock. ... [501 words]

Ergonomics: Kinesis Freestyle Keyboard and Evoluent Vertical Mouse 5 Mar 2012 | 11:16 pm

I've been using computers for a long time, and for most of that time I've been using them for the whole of the working day and often the rest of the day too. A few years ago I started getting pains in...

Tests that fail one day every four years 1 Mar 2012 | 04:24 am

Some code looks harmless but has hidden bugs lurking in its nether regions. Code that handles dates is notorious for this, and this being February 29th (the coders' halloween) it's time for the bugs t...

mock 0.8 released 17 Feb 2012 | 01:56 am

After more than six months development work mock 0.8 has been released. 0.8 is a big release with many new features, general improvements and bugfixes. ... [968 words]

Callable object with state using generators 23 Jan 2012 | 04:05 am

It's often convenient to create callable objects that maintain some kind of state. In Python we can do this with objects that implement the __call__ method and store the state as instance attributes. ...

Simple mocking of open as a context manager 14 Jan 2012 | 01:18 am

Using open as a context manager is a great way to ensure your file handles are closed properly and is becoming common: with open('/some/path', 'w') as f: f.write('something') The issue is that even if...

Mocks with some attributes not present 13 Jan 2012 | 01:33 am

Mock objects, from the mock library, create attributes on demand. This allows them to pretend to be objects of any type. ... [199 words]

mock 0.8rc2: new release and development docs 11 Jan 2012 | 03:13 pm

I've pushed out a new release of mock. This fixes an inconsistency in the create_autospec api I discovered whilst working on the docs (yes I've really been working on the docs), and a fix for a bug wi...

Python on Google Plus 4 Jan 2012 | 12:41 am

As you may (or perhaps not) have noticed, I've been blogging a lot less in the last year. A new job with Canonical (although I've been there over a year now) and an eight month old daughter all make b...

Sphinx doctests and the execution namespace 1 Jan 2012 | 01:28 pm

I've finally started work on the documentation for mock 0.8 release, and much of it involves converting the write-ups I did in the blog entries. The mock documentation is built with the excellent Sphi...

Related Keywords:

akismet, ptu, matrix quotes, python urllib, urllib2, sandman quotes, watchman nee, silly pictures, the matrix quotes, urlopner

Recently parsed news:

Recent searches: