blob: a04c79b1e0e37527ace4fc7bd46fab8ff7e846ba [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001From 9750d01118ee59ab174525e30d987065b69c0538 Mon Sep 17 00:00:00 2001
2From: pgajdos <pgajdos@suse.cz>
3Date: Wed, 8 Jul 2020 15:22:19 +0200
4Subject: [PATCH] use pytest instead of deprecated nose
5
6Upstream-Status: Submitted [https://github.com/jek/blinker/pull/60]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 tests/test_signals.py | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/tests/test_signals.py b/tests/test_signals.py
13index 9771e40..ccbc35b 100644
14--- a/tests/test_signals.py
15+++ b/tests/test_signals.py
16@@ -4,7 +4,7 @@ import time
17
18 import blinker
19
20-from nose.tools import assert_raises
21+import pytest
22
23
24 jython = sys.platform.startswith('java')
25@@ -232,7 +232,7 @@ def test_meta_connect_failure():
26 pass
27 sig = blinker.Signal()
28
29- assert_raises(TypeError, sig.connect, receiver)
30+ pytest.raises(TypeError, sig.connect, receiver)
31 assert not sig.receivers
32 assert not sig._by_receiver
33 assert sig._by_sender == {blinker.base.ANY_ID: set()}
34--
352.35.1
36