474 |
474 |
475 def pytest(test, wd, options, replacements): |
475 def pytest(test, wd, options, replacements): |
476 py3kswitch = options.py3k_warnings and ' -3' or '' |
476 py3kswitch = options.py3k_warnings and ' -3' or '' |
477 cmd = '%s%s "%s"' % (PYTHON, py3kswitch, test) |
477 cmd = '%s%s "%s"' % (PYTHON, py3kswitch, test) |
478 vlog("# Running", cmd) |
478 vlog("# Running", cmd) |
|
479 if os.name == 'nt': |
|
480 replacements.append((r'\r\n', '\n')) |
479 return run(cmd, wd, options, replacements) |
481 return run(cmd, wd, options, replacements) |
480 |
482 |
481 def shtest(test, wd, options, replacements): |
483 def shtest(test, wd, options, replacements): |
482 cmd = '%s "%s"' % (options.shell, test) |
484 cmd = '%s "%s"' % (options.shell, test) |
483 vlog("# Running", cmd) |
485 vlog("# Running", cmd) |