summaryrefslogtreecommitdiffstats
path: root/test/QT/warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/QT/warnings.py')
-rw-r--r--test/QT/warnings.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/QT/warnings.py b/test/QT/warnings.py
index 0fd3f66..baa1e6f 100644
--- a/test/QT/warnings.py
+++ b/test/QT/warnings.py
@@ -85,13 +85,13 @@ if moc:
expect = """
scons: warning: Could not detect qt, using moc executable as a hint \(QTDIR=%s\)
-File "%s", line \d+, in \?
+File "%s", line \d+, in (\?|<module>)
""" % (qtdir, re.escape(SConstruct_path))
else:
- expect = """
+ expect = r"""
scons: warning: Could not detect qt, using empty QTDIR
-File "%s", line \d+, in \?
+File "%s", line \d+, in (\?|<module>)
""" % re.escape(SConstruct_path)
test.fail_test(not test.match_re(test.stderr(), expect))