* fix test for Windows: test failed by test-code problem depends on os.sep.

This commit is contained in:
Takayuki Shimizukawa
2012-05-02 12:05:41 +09:00
parent 4713ca78ba
commit 48128c7b9b
3 changed files with 6 additions and 3 deletions

View File

@@ -319,7 +319,8 @@ def check_static_entries(outdir):
def test_html(app):
app.builder.build_all()
html_warnings = html_warnfile.getvalue().replace(os.sep, '/')
html_warnings_exp = HTML_WARNINGS % {'root': re.escape(app.srcdir)}
html_warnings_exp = HTML_WARNINGS % {
'root': re.escape(app.srcdir.replace(os.sep, '/'))}
assert re.match(html_warnings_exp + '$', html_warnings), \
'Warnings don\'t match:\n' + \
'--- Expected (regex):\n' + html_warnings_exp + \