diff --git a/python-txtorcon.changes b/python-txtorcon.changes index 112ea93..e97284c 100644 --- a/python-txtorcon.changes +++ b/python-txtorcon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 1 20:24:09 UTC 2021 - Matej Cepl + +- Async tests don't work with pytest. Use python -m twisted.trial + instead. + ------------------------------------------------------------------- Mon Apr 20 08:51:54 UTC 2020 - Tomáš Chvátal diff --git a/python-txtorcon.spec b/python-txtorcon.spec index a0d2ce0..705b51f 100644 --- a/python-txtorcon.spec +++ b/python-txtorcon.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -34,10 +34,10 @@ Requires: python-incremental Requires: python-zope.interface >= 3.6.1 BuildArch: noarch # SECTION test requirements +BuildRequires: lsof BuildRequires: %{python_module Automat} BuildRequires: %{python_module Twisted >= 15.5.0} BuildRequires: %{python_module mock} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module zope.interface >= 3.6.1} %if %{with python2} BuildRequires: python-ipaddress @@ -68,7 +68,8 @@ sed -i '/data_files/,/\]\,/s/^/#/' setup.py %check # 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} %license LICENSE docs/*.rst