File: 05-testsuite

package info (click to toggle)
duplicity 3.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,424 kB
  • sloc: python: 25,028; sh: 1,041; ansic: 392; makefile: 83
file content (62 lines) | stat: -rw-r--r-- 2,420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Author: Michael Terry <mterry@ubuntu.com>
Subject: Disable some tests for being flaky

--- a/testing/functional/test_restart.py
+++ b/testing/functional/test_restart.py
@@ -131,6 +131,7 @@ class RestartTest(FunctionalTestCase):
         self.backup("full", f"{_runtest_dir}/testfiles/largefiles")
         self.verify(f"{_runtest_dir}/testfiles/largefiles")
 
+    @unittest.skip("Flaky test because it relies on knowing how many volumes the source files will be split into")
     @unittest.skipIf(
         platform.machine() in ["ppc64el", "ppc64le"],
         "See https://gitlab.com/duplicity/duplicity/-/issues/820",
--- a/testing/unit/test_gpg.py
+++ b/testing/unit/test_gpg.py
@@ -165,6 +165,7 @@ class GPGTest(UnitTestCase):
         gwfh.set_at_end()
         gpg.GPGWriteFile(gwfh, f"{_runtest_dir}/testfiles/output/gpgwrite.gpg", profile, size=size)
 
+    @unittest.skip("Flaky test because it relies on compressed size of random bytes")
     def test_GzipWriteFile(self):
         """Test GzipWriteFile"""
 
--- a/testing/unit/test_selection.py
+++ b/testing/unit/test_selection.py
@@ -192,6 +192,7 @@ class MatchingTest(UnitTestCase):
         assert select.general_get_sf("**", 0)(root) == 0
         assert select.general_get_sf("/foo/*", 0)(root) is None
 
+    @unittest.skip("unreliable ass-U-me wrt / and /usr on one fs")
     def test_other_filesystems(self):
         """Test to see if --exclude-other-filesystems works correctly"""
         root = Path("/")
--- a/testing/unit/test_statistics.py
+++ b/testing/unit/test_statistics.py
@@ -61,6 +61,7 @@ class StatsObjTest(UnitTestCase):
         s1 = StatsDeltaProcess()
         assert s1.get_stat("SourceFiles") == 0
 
+    @unittest.skip("TZ setting seems to fail under sbuild, #880251")
     def test_get_stats_string(self):
         """Test conversion of stat object into string"""
         s = StatsObj()
--- a/testing/unit/test_globmatch.py
+++ b/testing/unit/test_globmatch.py
@@ -21,6 +21,8 @@
 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
+import unittest
+
 import sys
 from unittest.mock import patch
 
@@ -267,6 +269,7 @@ class TestDoubleAsterisk(UnitTestCase):
 class TestSimpleUnicode(UnitTestCase):
     """Test simple unicode comparison"""
 
+    @unittest.skip("Doesn't seem to work with python2.x")
     def test_simple_unicode(self):
         """Test simple unicode comparison"""
         self.assertEqual(