Closed
Description
After #744 pygit2 self tests are randomly failing with what looks like memory corruption:
======================================================================
FAIL: test_patch_create_from_blob_buffer (test.test_patch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/pygit2-0.26.2/test/test_patch.py", line 110, in test_patch_create_from_blob_buffer
self.assertEqual(patch.patch, BLOB_PATCH)
AssertionError: u'diff --git a/a/file b/b/file\nindex a520c24..d675fa4 100644\n--- a/a/file\n+++ [truncated]... != u'diff --git a/a/file b/b/file\nindex a520c24..d675fa4 100644\n--- a/a/file\n+++ [truncated]...
diff --git a/a/file b/b/file
index a520c24..d675fa4 100644
--- a/a/file
+++ b/b/file
@@ -1,3 +1 @@
- -+ -hello world
+ -hola mundo
+ -bonjour le monde
+ +foo bar
======================================================================
FAIL: test_patch_create_from_blob_buffer_delete (test.test_patch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/pygit2-0.26.2/test/test_patch.py", line 132, in test_patch_create_from_blob_buffer_delete
self.assertEqual(patch.patch, BLOB_PATCH_DELETED)
AssertionError: u'diff --git a/a/file b/b/file\ndeleted file mode 100644\nindex a520c24..0000000 [truncated]... != u'diff --git a/a/file b/b/file\ndeleted file mode 100644\nindex a520c24..0000000 [truncated]...
diff --git a/a/file b/b/file
deleted file mode 100644
index a520c24..0000000
--- a/a/file
+++ /dev/null
@@ -1,3 +0,0 @@
- -+ -hello world
+ -hola mundo
+ -bonjour le monde
======================================================================
FAIL: test_patch_create_from_blobs (test.test_patch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/pygit2-0.26.2/test/test_patch.py", line 99, in test_patch_create_from_blobs
self.assertEqual(patch.patch, BLOB_PATCH)
AssertionError: u'diff --git a/a/file b/b/file\nindex a520c24..d675fa4 100644\n--- a/a/file\n+++ [truncated]... != u'diff --git a/a/file b/b/file\nindex a520c24..d675fa4 100644\n--- a/a/file\n+++ [truncated]...
diff --git a/a/file b/b/file
index a520c24..d675fa4 100644
--- a/a/file
+++ b/b/file
@@ -1,3 +1 @@
- -0\ufffd�- @+ -hello world
+ -hola mundo
+ -bonjour le monde
+ +foo bar
----------------------------------------------------------------------
Metadata
Metadata
Assignees
Labels
No labels