rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / python / gitdb / patches / 01-pytest-disable-failing.patch
blob46bd6ec4f10c307cfb423ce1a82b07280db137f1
1 --- gitdb-4.0.11/gitdb/test/test_example.py.orig
2 +++ gitdb-4.0.11/gitdb/test/test_example.py
3 @@ -10,9 +10,12 @@
5 from io import BytesIO
7 +import pytest
10 class TestExamples(TestBase):
12 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
13 def test_base(self):
14 ldb = LooseObjectDB(os.path.join(self.gitrepopath, 'objects'))
16 --- gitdb-4.0.11/gitdb/test/db/test_git.py.orig
17 +++ gitdb-4.0.11/gitdb/test/db/test_git.py
18 @@ -12,9 +12,12 @@
19 from gitdb.base import OStream, OInfo
20 from gitdb.util import bin_to_hex
22 +import pytest
25 class TestGitDB(TestDBBase):
27 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
28 def test_reading(self):
29 gdb = GitDB(os.path.join(self.gitrepopath, 'objects'))
31 --- gitdb-4.0.11/gitdb/test/db/test_ref.py.orig
32 +++ gitdb-4.0.11/gitdb/test/db/test_ref.py
33 @@ -15,6 +15,8 @@
35 import os
37 +import pytest
40 class TestReferenceDB(TestDBBase):
42 @@ -25,6 +27,7 @@
43 for alt in alt_list:
44 alt_file.write(alt.encode("utf-8") + b"\n")
46 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
47 @with_rw_directory
48 def test_writing(self, path):
49 alt_path = os.path.join(path, 'alternates')
50 --- gitdb-4.0.11/gitdb/test/performance/test_pack.py.orig
51 +++ gitdb-4.0.11/gitdb/test/performance/test_pack.py
52 @@ -21,9 +21,12 @@
53 import os
54 from time import time
56 +import pytest
59 class TestPackedDBPerformance(TestBigRepoR):
61 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
62 def test_pack_random_access(self):
63 pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack"))
65 @@ -76,6 +79,7 @@
66 print("PDB: Obtained %i streams by sha and read all bytes totallying %i KiB ( %f KiB / s ) in %f s ( %f streams/s )" %
67 (max_items, total_kib, total_kib / (elapsed or 1), elapsed, max_items / (elapsed or 1)), file=sys.stderr)
69 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
70 def test_loose_correctness(self):
71 """based on the pack(s) of our packed object DB, we will just copy and verify all objects in the back
72 into the loose object db (memory).
73 @@ -102,6 +106,7 @@
74 mdb._cache.clear()
75 # end for each sha to copy
77 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
78 def test_correctness(self):
79 pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack"))
80 # disabled for now as it used to work perfectly, checking big repositories takes a long time
81 --- gitdb-4.0.11/gitdb/test/performance/test_pack_streaming.py.orig
82 +++ gitdb-4.0.11/gitdb/test/performance/test_pack_streaming.py
83 @@ -16,6 +16,8 @@
84 import sys
85 from time import time
87 +import pytest
90 class CountedNullStream(NullStream):
91 __slots__ = '_bw'
92 @@ -32,6 +34,7 @@
94 class TestPackStreamingPerformance(TestBigRepoR):
96 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
97 def test_pack_writing(self):
98 # see how fast we can write a pack from object streams.
99 # This will not be fast, as we take time for decompressing the streams as well
100 @@ -58,6 +61,7 @@
101 print(sys.stderr, "PDB Streaming: Wrote pack of size %i kb in %f s (%f kb/s)" %
102 (total_kb, elapsed, total_kb / (elapsed or 1)), sys.stderr)
104 + @pytest.mark.skip(reason="always fails: https://github.com/gitpython-developers/gitdb/issues/70")
105 def test_stream_reading(self):
106 # raise SkipTest()
107 pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack"))