- Add fix_tests_38.patch to overcome failing tests with Python
3.8. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=58
This commit is contained in:
parent
19c8e6ac64
commit
076ec723b0
12
fix_tests_38.patch
Normal file
12
fix_tests_38.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/test/test_writers/test_odt.py
|
||||
+++ b/test/test_writers/test_odt.py
|
||||
@@ -114,7 +114,8 @@ class DocutilsOdtTestCase(DocutilsTestSu
|
||||
content2 = self.extract_file(expected, 'content.xml')
|
||||
msg = 'content.xml not equal: expected len: %d actual len: %d' % (
|
||||
len(content2), len(content1), )
|
||||
- self.assertEqual(content1, content2, msg)
|
||||
+ # self.assertEqual(content1, content2, msg)
|
||||
+ self.assertEqual(content1, content2)
|
||||
|
||||
def extract_file(self, payload, filename):
|
||||
payloadfile = BytesIO()
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 14:11:49 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add fix_tests_38.patch to overcome failing tests with Python
|
||||
3.8.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 14 01:50:36 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
@ -34,6 +34,7 @@ Group: Development/Languages/Python
|
||||
URL: https://pypi.python.org/pypi/docutils/
|
||||
Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz
|
||||
Source99: python-docutils-rpmlintrc
|
||||
Patch0: fix_tests_38.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
@ -63,6 +64,7 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
|
||||
|
||||
%prep
|
||||
%setup -q -n docutils-%{version}
|
||||
%autopatch -p1
|
||||
# Remove useless ".py" ending from executables:
|
||||
for i in tools/rst*; do mv "$i" "${i/.py}"; done
|
||||
sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user