From 3143cc76cc9246712cd320d4aa3d8c7b92b1aa5d Mon Sep 17 00:00:00 2001 From: x54-729 <17307130121@fudan.edu.cn> Date: Wed, 18 May 2022 09:33:07 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dataloaders/test=5Futils.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/core/dataloaders/test_utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/core/dataloaders/test_utils.py b/tests/core/dataloaders/test_utils.py index e5a7cc9e..7e97e97d 100644 --- a/tests/core/dataloaders/test_utils.py +++ b/tests/core/dataloaders/test_utils.py @@ -12,14 +12,12 @@ def test_no_args(): def f(*args, a, b, **kwarg): c = 100 call_kwargs = _match_param(f, demo) - with pytest.raises(RuntimeError): - f(a=1, b=2) + f(a=1, b=2) def f(a, *args, b, **kwarg): c = 100 call_kwargs = _match_param(f, demo) - with pytest.raises(RuntimeError): - f(a=1, b=2) + f(a=1, b=2) @recover_logger