Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-twisted for
openSUSE:Factory checked in at 2022-01-07 12:46:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-twisted (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-twisted.new.1896 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-twisted"
Fri Jan 7 12:46:01 2022 rev:4 rq:944519 version:1.13.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-twisted/python-pytest-twisted.changes
2020-11-06 23:45:18.659239269 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-twisted.new.1896/python-pytest-twisted.changes
2022-01-07 12:47:30.451892382 +0100
@@ -1,0 +2,8 @@
+Thu Jan 6 17:21:12 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to 1.13.4
+ * no release notes
+- Add pytest-twisted-ignorepy310DeprecationWarnings.patch
+ gh#pytest-dev/pytest-twisted/146
+
+-------------------------------------------------------------------
Old:
----
v1.13.2.tar.gz
New:
----
pytest-twisted-1.13.4-gh.tar.gz
pytest-twisted-ignorepy310DeprecationWarnings.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-twisted.spec ++++++
--- /var/tmp/diff_new_pack.N3R6JI/_old 2022-01-07 12:47:30.927892713 +0100
+++ /var/tmp/diff_new_pack.N3R6JI/_new 2022-01-07 12:47:30.931892715 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-twisted
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-twisted
-Version: 1.13.2
+Version: 1.13.4
Release: 0
Summary: Pytest Plugin for Twisted
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-twisted
-Source:
https://github.com/pytest-dev/pytest-twisted/archive/v%{version}.tar.gz
+Source:
https://github.com/pytest-dev/pytest-twisted/archive/v%{version}.tar.gz#/pytest-twisted-%{version}-gh.tar.gz
+# PATCH-FIX-OPENSUSE pytest-twisted-ignorepy310DeprecationWarnings.patch --
upstream wants this fixed in twisted itself -- gh#pytest-dev/pytest-twisted/146
+Patch0: pytest-twisted-ignorepy310DeprecationWarnings.patch
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module greenlet}
@@ -46,7 +48,7 @@
objects and pytest will wait for their completion with this plugin.
%prep
-%setup -q -n pytest-twisted-%{version}
+%autosetup -p1 -n pytest-twisted-%{version}
%build
%python_build
@@ -56,14 +58,13 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-export PYTHONDONTWRITEBYTECODE=1
-# test_inline_callbacks_in_pytest_deprecation - breaks with the new pytest 5.x
series
-# test_blockon_in_pytest_deprecation - breaks with the new pytest 5.x series
-%pytest -k 'not test_blockon_in_pytest_deprecation and not
test_inline_callbacks_in_pytest_deprecation'
+%pytest
%files %{python_files}
%license LICENSE
%doc README.rst
-%{python_sitelib}/*
+%{python_sitelib}/pytest_twisted.py*
+%pycache_only %{python_sitelib}/__pycache__/pytest_twisted.*
+%{python_sitelib}/pytest_twisted-%{version}*-info
%changelog
++++++ pytest-twisted-ignorepy310DeprecationWarnings.patch ++++++
Index: pytest-twisted-1.13.4/pytest.ini
===================================================================
--- pytest-twisted-1.13.4.orig/pytest.ini
+++ pytest-twisted-1.13.4/pytest.ini
@@ -1,3 +1,5 @@
[pytest]
addopts = --verbose
-filterwarnings = error
+filterwarnings =
+ error
+ ignore:currentThread:DeprecationWarning
Index: pytest-twisted-1.13.4/testing/test_basic.py
===================================================================
--- pytest-twisted-1.13.4.orig/testing/test_basic.py
+++ pytest-twisted-1.13.4/testing/test_basic.py
@@ -94,8 +94,13 @@ def skip_if_no_async_generators():
@pytest.fixture
-def cmd_opts(request):
+def cmd_opts(request, testdir):
reactor = request.config.getoption("reactor", "default")
+ pytest_ini_file = """
+ [pytest]
+ filterwarnings = ignore:currentThread:DeprecationWarning
+ """
+ testdir.makefile(".ini", pytest=pytest_ini_file)
return (
sys.executable,
"-m",
@@ -370,6 +375,8 @@ def test_async_fixture(testdir, cmd_opts
[pytest]
markers =
redgreenblue
+ filterwarnings =
+ ignore:currentThread:DeprecationWarning
"""
testdir.makefile('.ini', pytest=pytest_ini_file)
test_file = """