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

test_binary_diff() fails #1303

Open
anatol opened this issue Jun 7, 2024 · 0 comments
Open

test_binary_diff() fails #1303

anatol opened this issue Jun 7, 2024 · 0 comments

Comments

@anatol
Copy link

anatol commented Jun 7, 2024

I am running tests at my machine and test_binary_diff() fails with following error:

repo = pygit2.Repository('/tmp/pytest/test_binary_diff0/binaryfilerepo/.git/')

    def test_binary_diff(repo):
        diff = repo.diff('HEAD', 'HEAD^')
        assert PATCH_BINARY == diff.patch
        diff = repo.diff('HEAD', 'HEAD^', flags=DiffOption.SHOW_BINARY)
>       assert PATCH_BINARY_SHOW == diff.patch
E       AssertionError: assert 'diff --git a...vrst3ey5{\n\n' == 'diff --git a...vrst3ey5{\n\n'
E         Skipping 154 identical leading characters in diff, use -v to show
E           teral 8
E         - PcwS>j%FIhFs^kIy3n&7R
E         ?   ^^^^
E         + Pc${NM%FIhFs^kIy3n&7R
E         ?   ^^^^
E           ...
@anatol anatol changed the title test_binary_diff() fail test_binary_diff() fails Jun 7, 2024
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