diff options
Diffstat (limited to 'dev-python/tornado')
| -rw-r--r-- | dev-python/tornado/files/tornado-6.3.2-ignore-deprecationwarning.patch | 12 | ||||
| -rw-r--r-- | dev-python/tornado/tornado-6.3.2.ebuild | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-python/tornado/files/tornado-6.3.2-ignore-deprecationwarning.patch b/dev-python/tornado/files/tornado-6.3.2-ignore-deprecationwarning.patch new file mode 100644 index 000000000000..7a6139173faf --- /dev/null +++ b/dev-python/tornado/files/tornado-6.3.2-ignore-deprecationwarning.patch @@ -0,0 +1,12 @@ +https://src.fedoraproject.org/rpms/python-tornado/raw/rawhide/f/Do-not-turn-DeprecationWarning-into-Exception.patch +--- a/tornado/test/runtests.py ++++ b/tornado/test/runtests.py +@@ -126,7 +126,6 @@ + # Tornado generally shouldn't use anything deprecated, but some of + # our dependencies do (last match wins). + warnings.filterwarnings("ignore", category=DeprecationWarning) +- warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\..*") + warnings.filterwarnings("ignore", category=PendingDeprecationWarning) + warnings.filterwarnings( + "error", category=PendingDeprecationWarning, module=r"tornado\..*" + diff --git a/dev-python/tornado/tornado-6.3.2.ebuild b/dev-python/tornado/tornado-6.3.2.ebuild index fd6a977a02fb..86a7e5949b81 100644 --- a/dev-python/tornado/tornado-6.3.2.ebuild +++ b/dev-python/tornado/tornado-6.3.2.ebuild @@ -37,6 +37,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-6.3.2-test-timeout-increase.patch + "${FILESDIR}"/${PN}-6.3.2-ignore-deprecationwarning.patch ) src_prepare() { @@ -49,6 +50,11 @@ src_prepare() { python_test() { local -x ASYNC_TEST_TIMEOUT=60 + # Avoid time-sensitive tests + # https://github.com/tornadoweb/tornado/blob/10974e6ebee80a26a2a65bb9bd715cf858fafde5/tornado/test/util.py#L19 + local -x TRAVIS=1 + local -x NO_NETWORK=1 + cd "${T}" || die "${EPYTHON}" -m tornado.test.runtests --verbose || die "tests failed under ${EPYTHON}" |
