diff options
author | Bart Ribbers <bribbers@disroot.org> | 2020-03-28 11:00:33 +0100 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-05-06 20:36:43 +0000 |
commit | d2511a714c00d22cdfa2006cf5d181f4dfc35089 (patch) | |
tree | 74016b145f3868ad81134ef8d6c5702404300145 /testing/py3-pyee/fix-tests.patch | |
parent | 53979850556bda7b6ce35b79ecc3fe8fab820905 (diff) | |
download | aports-d2511a714c00d22cdfa2006cf5d181f4dfc35089.tar.bz2 aports-d2511a714c00d22cdfa2006cf5d181f4dfc35089.tar.xz |
testing/py3-pyee: new aport
Diffstat (limited to 'testing/py3-pyee/fix-tests.patch')
-rw-r--r-- | testing/py3-pyee/fix-tests.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/py3-pyee/fix-tests.patch b/testing/py3-pyee/fix-tests.patch new file mode 100644 index 0000000000..53934762d4 --- /dev/null +++ b/testing/py3-pyee/fix-tests.patch @@ -0,0 +1,32 @@ +Upstream pull-request: https://github.com/jfhbrook/pyee/pull/69 + +Commit modified to not touch not-existing-in-release-tarball tox.ini + +From e1928cc0484812345a87d20f88392d0dfab72c12 Mon Sep 17 00:00:00 2001 +From: Joshua Holbrook <josh.holbrook@gmail.com> +Date: Tue, 5 May 2020 12:45:16 -0400 +Subject: [PATCH] Tests pass on python 3.8 + +--- + tests/test_async.py | 7 ++++++- + tox.ini | 14 ++++++++++++-- + 2 files changed, 18 insertions(+), 3 deletions(-) + +diff --git a/tests/test_async.py b/tests/test_async.py +index 64ede82..01ec221 100644 +--- a/tests/test_async.py ++++ b/tests/test_async.py +@@ -4,7 +4,12 @@ + import pytest_asyncio.plugin # noqa + + from asyncio import Future, wait_for +-from concurrent.futures import TimeoutError ++ ++try: ++ from asyncio.exceptions import TimeoutError ++except ImportError: ++ from concurrent.futures import TimeoutError ++ + from mock import Mock + + from twisted.internet.defer import ensureDeferred, succeed |