Debian Codegraph @

debian/patches/debian-hacks/s390x-Work-around-unittest-issue.patch

raw
1 From: Carsten Schoenert <[email protected]>
2 Date: Sun, 9 Oct 2022 08:58:40 +0200
3 Subject: s390x: Work around unittest issue
4
5 The test test_rebuild_after_delete is failing on s390x. Given this
6 architecture isn't a usual desktop system let us ignore this test.
7 Upstream probably won't work on this issue.
8
9 Forwarded: Not-Needed
10 ---
11 mkdocs/tests/livereload_tests.py | 3 +++
12 1 file changed, 3 insertions(+)
13
14 diff --git a/mkdocs/tests/livereload_tests.py b/mkdocs/tests/livereload_tests.py
15 index b19009a..e7010e0 100644
16 --- a/mkdocs/tests/livereload_tests.py
17 +++ b/mkdocs/tests/livereload_tests.py
18 @@ -3,6 +3,7 @@
19 import contextlib
20 import email
21 import io
22 +import os
23 import sys
24 import threading
25 import time
26 @@ -113,6 +114,8 @@ class BuildTests(unittest.TestCase):
27
28 @tempdir({"foo.docs": "a"})
29 @tempdir({"foo.site": "original"})
30 + @unittest.skipIf(os.uname()[4].startswith("s390"),
31 + "Test expected fo fail on s390(x)")
32 def test_rebuild_after_delete(self, site_dir, docs_dir):
33 started_building = threading.Event()
34