Fix tests for Python3.9.0a5+

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1829705
This commit is contained in:
Miro Hrončok 2020-05-11 13:19:19 +02:00
parent bf5a2d48d8
commit d237e99bb9
2 changed files with 25 additions and 0 deletions

22
ffb1ca3a.patch Normal file
View File

@ -0,0 +1,22 @@
From ffb1ca3aaafe86b6bc44fe28e4000477e97ba3e8 Mon Sep 17 00:00:00 2001
From: Takeshi KOMIYA <i.tkomiya@gmail.com>
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

View File

@ -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