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 5 failing tests due to list(set(... operations in ParseResults.__init__ #9

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

ianozsvald
Copy link

5 of the unit tests were failing for me, they were all caused by the list(set(... operations which destroyed ordering in ParseResults.init, also the list(set(... operation on @reply was destructive as the reply was a string not a list of strings (so you got an unordered set of characters). These are fixed in my fork, this is my first ever pull request, I hope I get the process right.

I've also removed lots of non-pep8 whitespace in tests.py and ttp.py.

ianozsvald and others added 30 commits September 7, 2012 14:51
as they destory the ordering of urls, users etc in the tweet.  The
list(set( operation on replies was dangerous as reply was a string not a
list (so the string was split into a list of set elements of
characters). Removed lots of non-pep8 whitespace
https://github.com/schwa/twitter-text-python/commit/b81cef33a6fc12c837936d60a0b4a86222d45a4f
to add option to extract span for matched parts of message for URLs,
users etc
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.

2 participants