From 591e075f50957927112e58bcc875b7bf8da2de04a7127392b7bf0e3061b0458a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 1 Oct 2018 07:22:45 +0000 Subject: [PATCH] - Call the tests the same way as upstream to avoid import cycles OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=11 --- python-websockets.changes | 5 +++++ python-websockets.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-websockets.changes b/python-websockets.changes index 2713a7f..2254a3c 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 1 07:22:29 UTC 2018 - Tomáš Chvátal + +- Call the tests the same way as upstream to avoid import cycles + ------------------------------------------------------------------- Mon Sep 24 07:35:18 UTC 2018 - Tomáš Chvátal diff --git a/python-websockets.spec b/python-websockets.spec index 4ed547c..c939949 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -56,7 +56,7 @@ export CFLAGS="%{optflags}" %check # Test execution speed depends on BS load and architecture, relax export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5 -%python_exec setup.py test +%python_exec -m unittest %files %{python_files} %license LICENSE