Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed two tests, fixes for PyP #51

Merged
merged 1 commit into from
May 7, 2013
Merged

Fixed two tests, fixes for PyP #51

merged 1 commit into from
May 7, 2013

Conversation

lukaslueg
Copy link
Contributor

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, a comparison fails - strings are equal but not identical - and hidden services are never considered having a unique name...

edit: there is a discussion about the above right now at http://mail.python.org/pipermail/pypy-dev/2013-May/011299.html

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

@meejah
Copy link
Owner

meejah commented May 7, 2013

Thanks, looks great!

(p.s. feel free to add comments about such changes to the "unreleased" version in docs/releases.rst for future fixes/features etc)

meejah added a commit that referenced this pull request May 7, 2013
Fixed two tests, fixes for PyP
@meejah meejah merged commit df29662 into meejah:master May 7, 2013
ghtdak pushed a commit to ghtdak/txtorcon that referenced this pull request Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants