From d237e99bb9e320a539e2e653f8cc92a821244266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 11 May 2020 13:19:19 +0200 Subject: [PATCH] Fix tests for Python3.9.0a5+ Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1829705 --- ffb1ca3a.patch | 22 ++++++++++++++++++++++ python-sphinx.spec | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 ffb1ca3a.patch diff --git a/ffb1ca3a.patch b/ffb1ca3a.patch new file mode 100644 index 0000000..6977cbd --- /dev/null +++ b/ffb1ca3a.patch @@ -0,0 +1,22 @@ +From ffb1ca3aaafe86b6bc44fe28e4000477e97ba3e8 Mon Sep 17 00:00:00 2001 +From: Takeshi KOMIYA +Date: Sat, 18 Apr 2020 19:53:18 +0900 +Subject: [PATCH] test: Add a docstring to avoid an error on py39a5+ + +--- + tests/roots/test-ext-autodoc/target/__init__.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/roots/test-ext-autodoc/target/__init__.py b/tests/roots/test-ext-autodoc/target/__init__.py +index e28eeef8a6..b6684ee85b 100644 +--- a/tests/roots/test-ext-autodoc/target/__init__.py ++++ b/tests/roots/test-ext-autodoc/target/__init__.py +@@ -145,6 +145,8 @@ def prop2(self): + + + class StrRepr(str): ++ """docstring""" ++ + def __repr__(self): + return self + diff --git a/python-sphinx.spec b/python-sphinx.spec index 6f87b99..26ef433 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -40,6 +40,9 @@ Source0: %{pypi_source %{upstream_name} %{upstream_version}} # which causes that test to fail. Patch1: sphinx-test_theming.diff +# Backport: test: Add a docstring to avoid an error on py39a5+ +Patch2: https://github.com/sphinx-doc/sphinx/commit/ffb1ca3a.patch + BuildArch: noarch BuildRequires: python3-devel