test_binary_diff() fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- git, python
- Domain
- testing-qa
Research direction
Start by running test_binary_diff() and compare the generated SHOW_BINARY diff with PATCH_BINARY_SHOW, focusing on the differing binary content shown in the assertion. Trace the repository diff call and its binary-output behavior; the work is done when the test produces the expected stable patch output.
Written by the indexing model from the issue text.
Description
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 ...
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 408
- Avg merge
- 2d 57m
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libgit2/pygit2
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·