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

Pypi version is seriously broken #11

Open
glic3rinu opened this issue Nov 26, 2015 · 0 comments
Open

Pypi version is seriously broken #11

glic3rinu opened this issue Nov 26, 2015 · 0 comments

Comments

@glic3rinu
Copy link

Just pip installed it and quickly found out one serious bug

Python 3.4.3 (default, Sep 14 2015, 17:11:46) 
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> for i in range(50, 70):
...     s = b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'*i
...     d = b'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'*i + b'2'
...     src = io.BytesIO(s)
...     dst = io.BytesIO(d)
...     signature = librsync.signature(dst)
...     delta = librsync.delta(src, signature)
...     synced = librsync.patch(dst, delta)
...     _= src.seek(0)
...     src.read() == synced.read()
... 
True
True
True
True
True
True
True
True
True
False
False
False
False
False
False
False
False
False
False
False

tried with current master and all seems ok, so maybe it will be worth it to publish a new release on pypi :)

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

No branches or pull requests

1 participant