From 8e77d14f8ca57b6c7cce487a5bbb1a3b9213a257 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 3 Apr 2024 20:26:47 +0300 Subject: [PATCH] testing: fix an assert The assert as written was always true, according to the name `failures` it intended the first element of the tuple. --- testing/test_looponfail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_looponfail.py b/testing/test_looponfail.py index 348aa3e..6be686f 100644 --- a/testing/test_looponfail.py +++ b/testing/test_looponfail.py @@ -122,7 +122,7 @@ class TestRemoteControl: item = pytester.getitem("def test_func():\n assert 0\n") control = RemoteControl(item.config) control.setup() - failures = control.runsession() + failures = control.runsession()[0] assert failures control.setup() item.path.write_text("def test_func():\n assert 1\n")