diff --git a/PyConf/tests/pytest/test_test_example.py b/PyConf/tests/pytest/test_test_example.py
index 8844653c5af8bab93f03ec819ad6acad872d6d53..04c98cef82f69cc0b3e6d62eaa6c67ec39e2a55f 100644
--- a/PyConf/tests/pytest/test_test_example.py
+++ b/PyConf/tests/pytest/test_test_example.py
@@ -25,7 +25,7 @@ class Test(LHCbExeTest):
 
     def test_intdata_producer(self, stdout: bytes):
         # The second instance of IntDataProducer should be in DEBUG
-        assert not b"+ OUTPUT '/Event/Gaudi__Examples__IntDataProducer_645a4107/OutputLocation" in stdout, (
+        assert b"+ OUTPUT '/Event/Gaudi__Examples__IntDataProducer_645a4107/OutputLocation" not in stdout, (
             "Incorrect configuration of first IntDataProducer")
         assert b"+ OUTPUT '/Event/Gaudi__Examples__IntDataProducer_20b0013b/OutputLocation'" in stdout, (
             "Incorrect configuration of second IntDataProducer")