testing: fix an assert

The assert as written was always true, according to the name `failures`
it intended the first element of the tuple.
This commit is contained in:
Ran Benita
2024-04-03 20:26:47 +03:00
parent 5dcc10c723
commit 8e77d14f8c

View File

@@ -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")