Explorar o código

Mark archive tests as known failing on python2.6.

Jelmer Vernooij %!s(int64=9) %!d(string=hai) anos
pai
achega
50f86b04f5
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      dulwich/tests/test_archive.py

+ 3 - 1
dulwich/tests/test_archive.py

@@ -19,6 +19,7 @@
 """Tests for archive support."""
 
 from io import BytesIO
+import sys
 import tarfile
 
 from dulwich.archive import tar_stream
@@ -30,7 +31,6 @@ from dulwich.objects import (
     Tree,
     )
 from dulwich.tests import (
-    expectedFailure,
     TestCase,
     )
 from dulwich.tests.utils import (
@@ -41,6 +41,8 @@ from dulwich.tests.utils import (
 class ArchiveTests(TestCase):
 
     def test_empty(self):
+        if sys.version_info[:2] <= (2, 6):
+            self.skipTest("archive creation known failing on Python2.6")
         store = MemoryObjectStore()
         c1, c2, c3 = build_commit_graph(store, [[1], [2, 1], [3, 1, 2]])
         tree = store[c3.tree]