Show More
@@ -675,19 +675,16 class TestResult(object): | |||
|
675 | 675 | """Whether the test was skipped.""" |
|
676 | 676 | return self.ret == SKIPPED_STATUS |
|
677 | 677 | |
|
678 | def pytest(test, wd, options, replacements, env): | |
|
679 | py3kswitch = options.py3k_warnings and ' -3' or '' | |
|
680 | cmd = '%s%s "%s"' % (PYTHON, py3kswitch, test) | |
|
678 | class PythonTest(Test): | |
|
679 | """A Python-based test.""" | |
|
680 | def _run(self, testtmp, replacements, env): | |
|
681 | py3kswitch = self._options.py3k_warnings and ' -3' or '' | |
|
682 | cmd = '%s%s "%s"' % (PYTHON, py3kswitch, self._path) | |
|
681 | 683 | vlog("# Running", cmd) |
|
682 | 684 | if os.name == 'nt': |
|
683 | 685 | replacements.append((r'\r\n', '\n')) |
|
684 |
return run(cmd, |
|
|
686 | return run(cmd, testtmp, self._options, replacements, env) | |
|
685 | 687 | |
|
686 | class PythonTest(Test): | |
|
687 | """A Python-based test.""" | |
|
688 | def _run(self, testtmp, replacements, env): | |
|
689 | return pytest(self._path, testtmp, self._options, replacements, | |
|
690 | env) | |
|
691 | 688 | |
|
692 | 689 | needescape = re.compile(r'[\x00-\x08\x0b-\x1f\x7f-\xff]').search |
|
693 | 690 | escapesub = re.compile(r'[\x00-\x08\x0b-\x1f\\\x7f-\xff]').sub |
General Comments 0
You need to be logged in to leave comments.
Login now