[arch-commits] Commit in python-unittest-xml-reporting/trunk (2 files)
Antonio Rojas
arojas at archlinux.org
Thu Oct 31 23:45:22 UTC 2019
Date: Thursday, October 31, 2019 @ 23:45:21
Author: arojas
Revision: 521734
Update test for python 3.8
Added:
python-unittest-xml-reporting/trunk/unittest-xml-reporting-python-3.8.patch
Modified:
python-unittest-xml-reporting/trunk/PKGBUILD
-----------------------------------------+
PKGBUILD | 11 +++++++++--
unittest-xml-reporting-python-3.8.patch | 14 ++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 23:32:17 UTC (rev 521733)
+++ PKGBUILD 2019-10-31 23:45:21 UTC (rev 521734)
@@ -12,9 +12,16 @@
depends=('python-six')
makedepends=('python-setuptools')
checkdepends=('python-lxml' 'python-mock')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/xmlrunner/unittest-xml-reporting/archive/$pkgver.tar.gz")
-sha512sums=('86e3c78d0f5f41c05214e080bf31d47bf0c33d4d6b8ad8a6d9b5286086cab4d7b6e7bea27cda94e9184afc5830709d1ae6bc72355f4a9306d842d8abc01df7ca')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/xmlrunner/unittest-xml-reporting/archive/$pkgver.tar.gz"
+ unittest-xml-reporting-python-3.8.patch)
+sha512sums=('86e3c78d0f5f41c05214e080bf31d47bf0c33d4d6b8ad8a6d9b5286086cab4d7b6e7bea27cda94e9184afc5830709d1ae6bc72355f4a9306d842d8abc01df7ca'
+ 'c75efff884d8587dc34455e32f92f104827d7d9f21fc1e221e95d77911abbda41f09c9ef0247501ba4f3034ea650c236ddcae03956bd07b02711f0436b0499f7')
+prepare() {
+ cd unittest-xml-reporting-$pkgver
+ patch -p1 -i ../unittest-xml-reporting-python-3.8.patch # Update test for python 3.8
+}
+
build() {
cd unittest-xml-reporting-$pkgver
python setup.py build
Added: unittest-xml-reporting-python-3.8.patch
===================================================================
--- unittest-xml-reporting-python-3.8.patch (rev 0)
+++ unittest-xml-reporting-python-3.8.patch 2019-10-31 23:45:21 UTC (rev 521734)
@@ -0,0 +1,14 @@
+diff --git a/tests/testsuite.py b/tests/testsuite.py
+index 0b0cb7a..5de5814 100755
+--- a/tests/testsuite.py
++++ b/tests/testsuite.py
+@@ -306,8 +306,7 @@ class XMLTestRunnerTestCase(unittest.TestCase):
+ outdir.seek(0)
+ output = outdir.read()
+ self.assertIn(
+- u'<skipped message="demonstrating non-ascii skipping: éçà" '
+- u'type="skip"/>'.encode('utf8'),
++ u'<skipped type="skip" message="demonstrating non-ascii skipping: éçà"/>'.encode('utf8'),
+ output)
+
+ def test_xmlrunner_safe_xml_encoding_name(self):
More information about the arch-commits
mailing list