From 4cfbc27d4ec1a18d42f08e704eafb1b7b37332a9 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 5 Jul 2019 11:03:31 +0100 Subject: [PATCH] test_cuse: fix runtime error We are no longer using the capfd mechanism. --- test/test_examples.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_examples.py b/test/test_examples.py index 72c4100..26f3b92 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -338,12 +338,12 @@ def test_notify_inval_entry(tmpdir, notify, output_checker): @pytest.mark.skipif(os.getuid() != 0, reason='needs to run as root') -def test_cuse(capfd, output_checker): +def test_cuse(output_checker): # Valgrind warns about unknown ioctls, that's ok - capfd.register_output(r'^==([0-9]+).+unhandled ioctl.+\n' - r'==\1== \s{3}.+\n' - r'==\1== \s{3}.+$', count=0) + output_checker.register_output(r'^==([0-9]+).+unhandled ioctl.+\n' + r'==\1== \s{3}.+\n' + r'==\1== \s{3}.+$', count=0) devname = 'cuse-test-%d' % os.getpid() devpath = '/dev/%s' % devname -- 2.30.2