From 65dc83902facdb2d09e94b37075bf1f0f06716a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=A4rdian?= <luk@slyon.de> Date: Fri, 3 Jul 2020 19:29:31 +0200 Subject: [PATCH] Fix FTBFS (Closes: #963337) --- debian/changelog | 1 + debian/patches/0008-Fix-FTBFS.patch | 18 ++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 20 insertions(+) create mode 100644 debian/patches/0008-Fix-FTBFS.patch diff --git a/debian/changelog b/debian/changelog index 0d5f139..0b5f559 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ python-mkdocs (1.0.4+dfsg-2) UNRELEASED; urgency=medium * Adopt link target of font-awesome files - fonts-font-awesome 5.0.10+really4.7.0~dfsg-2 provides only OpenType and TrueType under /usr/share/fonts/ + * Fix FTBFS (Closes: #963337) -- Ondřej Nový <onovy@debian.org> Sat, 20 Jul 2019 00:06:32 +0200 diff --git a/debian/patches/0008-Fix-FTBFS.patch b/debian/patches/0008-Fix-FTBFS.patch new file mode 100644 index 0000000..a3c1956 --- /dev/null +++ b/debian/patches/0008-Fix-FTBFS.patch @@ -0,0 +1,18 @@ +Description: Mocking 'io.open' does not work at build time + If we remove the mock.patch('io.open', ...) test_build_extra_template + can be executed successfully. + +Author: Lukas Märdian <lukas.maerdian@canonical.com> +Bug-Debian: https://bugs.debian.org/963337 + +--- python-mkdocs-1.0.4+dfsg.orig/mkdocs/tests/build_tests.py ++++ python-mkdocs-1.0.4+dfsg/mkdocs/tests/build_tests.py +@@ -228,7 +228,6 @@ class BuildTests(PathAssertionMixin, Log + + # Test build._build_extra_template + +- @mock.patch('io.open', mock.mock_open(read_data='template content')) + def test_build_extra_template(self): + cfg = load_config() + files = Files([ + diff --git a/debian/patches/series b/debian/patches/series index 0ea751e..d948a70 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 0005-Disable-the-Markdown-GitHub-links-extension.patch 0006-Do-not-assert-that-fonts-directory-exists.patch 0007-Disable-non-English-search-support.patch +0008-Fix-FTBFS.patch -- GitLab