diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-blinker')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch | 36 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-blinker/run-ptest | 2 |
2 files changed, 1 insertions, 37 deletions
diff --git a/meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch b/meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch deleted file mode 100644 index a04c79b1e0..0000000000 --- a/meta-python/recipes-devtools/python/python3-blinker/0001-use-pytest-instead-of-deprecated-nose.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 9750d01118ee59ab174525e30d987065b69c0538 Mon Sep 17 00:00:00 2001 -From: pgajdos <pgajdos@suse.cz> -Date: Wed, 8 Jul 2020 15:22:19 +0200 -Subject: [PATCH] use pytest instead of deprecated nose - -Upstream-Status: Submitted [https://github.com/jek/blinker/pull/60] -Signed-off-by: Khem Raj <raj.khem@gmail.com> ---- - tests/test_signals.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/test_signals.py b/tests/test_signals.py -index 9771e40..ccbc35b 100644 ---- a/tests/test_signals.py -+++ b/tests/test_signals.py -@@ -4,7 +4,7 @@ import time - - import blinker - --from nose.tools import assert_raises -+import pytest - - - jython = sys.platform.startswith('java') -@@ -232,7 +232,7 @@ def test_meta_connect_failure(): - pass - sig = blinker.Signal() - -- assert_raises(TypeError, sig.connect, receiver) -+ pytest.raises(TypeError, sig.connect, receiver) - assert not sig.receivers - assert not sig._by_receiver - assert sig._by_sender == {blinker.base.ANY_ID: set()} --- -2.35.1 - diff --git a/meta-python/recipes-devtools/python/python3-blinker/run-ptest b/meta-python/recipes-devtools/python/python3-blinker/run-ptest index 15c3f6282d..69cd362f69 100644 --- a/meta-python/recipes-devtools/python/python3-blinker/run-ptest +++ b/meta-python/recipes-devtools/python/python3-blinker/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}' +pytest --automake |