forked from pool/python-txtorcon
Accepting request 889754 from devel:languages:python
- Async tests don't work with pytest. Use python -m twisted.trial instead. OBS-URL: https://build.opensuse.org/request/show/889754 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-txtorcon?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 1 20:24:09 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Async tests don't work with pytest. Use python -m twisted.trial
|
||||||
|
instead.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 20 08:51:54 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Apr 20 08:51:54 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-txtorcon
|
# spec file for package python-txtorcon
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -34,10 +34,10 @@ Requires: python-incremental
|
|||||||
Requires: python-zope.interface >= 3.6.1
|
Requires: python-zope.interface >= 3.6.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
|
BuildRequires: lsof
|
||||||
BuildRequires: %{python_module Automat}
|
BuildRequires: %{python_module Automat}
|
||||||
BuildRequires: %{python_module Twisted >= 15.5.0}
|
BuildRequires: %{python_module Twisted >= 15.5.0}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module zope.interface >= 3.6.1}
|
BuildRequires: %{python_module zope.interface >= 3.6.1}
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: python-ipaddress
|
BuildRequires: python-ipaddress
|
||||||
@@ -68,7 +68,8 @@ sed -i '/data_files/,/\]\,/s/^/#/' setup.py
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
# looks more like integration tests
|
# looks more like integration tests
|
||||||
%pytest -k 'not test_real_addr'
|
# Async tests don't work with pytest gh#crossbario/autobahn-python#1235
|
||||||
|
%python_expand $python -m twisted.trial test
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE docs/*.rst
|
%license LICENSE docs/*.rst
|
||||||
|
Reference in New Issue
Block a user