gentoo/dev-python/tornado/files/tornado-6.3.2-ignore-deprecationwarning.patch
Sam James e2675dd4fd
dev-python/tornado: add test suite tweaks
- Skip tests marked as skipOnTravis (timing sensitive)
- Explicitly set NO_NETWORK too to avoid network tests
- Don't treat DeprecationWarning as fatal for tests (grabbed from Fedora)

Signed-off-by: Sam James <sam@gentoo.org>
2023-05-28 23:50:49 +01:00

13 lines
656 B
Diff

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\..*"