meejah/txtorcon — pull request #51 by lukaslueg (2013-05-07 18:10:46+00:00)
Title: Fixed two tests, fixes for PyP

Hi,

here are two fixes for unflushed buffers leading to a race condition on slow IO, causing unittests to fail.
There was also a subtle bug in torstate.py due to a identity-comparison against a string: Comparisons against immutable objects (such as a string) based on identity ("foo is bar") usually get you more than you ask for. Due to the way PyPy handles the situation, the comparison fails - the strings are equal but no identical - and the hidden services can never be considered having a unique name...

Fixing the above, the test-suite now passes on Linux 3.0.8+ armv7l using PyPy 2.0 alpha