summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/debug-stree.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Deprecated/debug-stree.py')
-rw-r--r--test/Deprecated/debug-stree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Deprecated/debug-stree.py b/test/Deprecated/debug-stree.py
index 8907c6c..9b6e067 100644
--- a/test/Deprecated/debug-stree.py
+++ b/test/Deprecated/debug-stree.py
@@ -100,7 +100,7 @@ stree = """
test.run(arguments = "--debug=stree foo.xxx",
stderr = stderr)
-test.fail_test(string.find(test.stdout(), stree) == -1)
+test.fail_test(string.count(test.stdout(), stree) != 1)
stree2 = """
E = exists
@@ -132,6 +132,6 @@ test.run(arguments = '-c foo.xxx')
test.run(arguments = "--no-exec --debug=stree foo.xxx",
stderr = stderr)
-test.fail_test(string.find(test.stdout(), stree2) == -1)
+test.fail_test(string.count(test.stdout(), stree2) != 1)
test.pass_test()