本文整理汇总了Python中TestSCons.match_re_dotall方法的典型用法代码示例。如果您正苦于以下问题:Python TestSCons.match_re_dotall方法的具体用法?Python TestSCons.match_re_dotall怎么用?Python TestSCons.match_re_dotall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestSCons
的用法示例。
在下文中一共展示了TestSCons.match_re_dotall方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tempnam
# 需要导入模块: import TestSCons [as 别名]
# 或者: from TestSCons import match_re_dotall [as 别名]
#define F4_STR "f4.c\n"
""")
# Some releases of freeBSD seem to have library complaints about
# tempnam(). Filter out these annoying messages before checking for
# error output.
def filter_tempnam(err):
if not err:
return ''
msg = "warning: tempnam() possibly used unsafely"
return '\n'.join([l for l in err.splitlines() if l.find(msg) == -1])
test.run(chdir='work1', arguments = '. ../build', stderr=None)
stderr = filter_tempnam(test.stderr())
test.fail_test(TestSCons.match_re_dotall(stderr, 6*warning))
test.run(program = foo11, stdout = "f1.c\n")
test.run(program = foo12, stdout = "f2.c\n")
test.run(program = foo41, stdout = "f1.c\n")
test.run(program = foo42, stdout = "f2.c\n")
test.run(chdir='work1',
arguments='. ../build',
stderr = None,
stdout=test.wrap_stdout("""\
scons: `.' is up to date.
scons: `%s' is up to date.
""" % test.workpath('build')))
stderr = filter_tempnam(test.stderr())