[packages/python3-asyncio] - disabled tests that fail only on builders
baggins
baggins at pld-linux.org
Sat May 7 13:02:42 CEST 2016
commit f8b99dfcc0ade167d915a6c69f5587f577f23987
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat May 7 13:02:22 2016 +0200
- disabled tests that fail only on builders
python3-asyncio.spec | 4 +++-
tests.patch | 18 ++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/python3-asyncio.spec b/python3-asyncio.spec
index e72d4f6..aa40ab7 100644
--- a/python3-asyncio.spec
+++ b/python3-asyncio.spec
@@ -2,7 +2,7 @@
# Conditional build:
%bcond_without tests # do not perform "make test"
-%define module asyncio
+%define module asyncio
Summary: Asynchronous IO Support
Name: python3-%{module}
Version: 3.4.3
@@ -11,6 +11,7 @@ License: GPL
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/a/asyncio/%{module}-%{version}.tar.gz
# Source0-md5: a189813096a6da1e46c16a41edb5f96d
+Patch0: tests.patch
URL: https://pypi.python.org/pypi/asyncio
BuildRequires: rpmbuild(macros) >= 1.710
BuildRequires: python3-2to3
@@ -27,6 +28,7 @@ higher-level scheduler based on yield from (PEP 380)
%prep
%setup -q -n asyncio-%{version}
+%patch0 -p1
%build
%py3_build
diff --git a/tests.patch b/tests.patch
new file mode 100644
index 0000000..59e9330
--- /dev/null
+++ b/tests.patch
@@ -0,0 +1,18 @@
+--- asyncio-3.4.3/tests/test_events.py~ 2015-02-12 16:27:23.000000000 +0100
++++ asyncio-3.4.3/tests/test_events.py 2016-05-07 13:01:03.741905201 +0200
+@@ -1227,6 +1227,7 @@
+ # extra info is available
+ self.assertIsNotNone(proto.transport.get_extra_info('pipe'))
+
++ @unittest.skipUnless(False, 'Builders do not provide ptys')
+ @unittest.skipUnless(sys.platform != 'win32',
+ "Don't support pipes for Windows")
+ # select, poll and kqueue don't support character devices (PTY) on Mac OS X
+@@ -1329,6 +1330,7 @@
+ self.loop.run_until_complete(proto.done)
+ self.assertEqual('CLOSED', proto.state)
+
++ @unittest.skipUnless(False, 'Builders do not provide ptys')
+ @unittest.skipUnless(sys.platform != 'win32',
+ "Don't support pipes for Windows")
+ # select, poll and kqueue don't support character devices (PTY) on Mac OS X
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-asyncio.git/commitdiff/f8b99dfcc0ade167d915a6c69f5587f577f23987
More information about the pld-cvs-commit
mailing list