0e632d67fafe0d1017e4c63d1017c1e493382b98,src/python/pants/backend/python/tasks/pytest_run.py,PytestRun,_test_runner,#PytestRun#Any#Any#,403

Before Change


    pex_info = PexInfo.default()
    pex_info.entry_point = "pytest"

    with self.cached_chroot(interpreter=interpreter,
                            pex_info=pex_info,
                            targets=targets,
                            platforms=("current",),
                            extra_requirements=self._TESTING_TARGETS) as chroot:
      pex = chroot.pex()
      with self._maybe_shard() as shard_args:
        with self._maybe_emit_junit_xml(targets) as junit_args:
          with self._maybe_emit_coverage_data(targets,
                                              chroot.path(),
                                              pex,
                                              workunit) as coverage_args:
            yield pex, shard_args + junit_args + coverage_args

  def _do_run_tests_with_args(self, pex, workunit, args):
    try:
      // The pytest runner we use accepts a --pdb argument that will launch an interactive pdb
      // session on any test failure.  In order to support use of this pass-through flag we must

After Change


    pex_info = PexInfo.default()
    pex_info.entry_point = "pytest"

    chroot = self.cached_chroot(interpreter=interpreter,
                                pex_info=pex_info,
                                targets=targets,
                                platforms=("current",),
                                extra_requirements=self._TESTING_TARGETS)
    pex = chroot.pex()
    with self._maybe_shard() as shard_args:
      with self._maybe_emit_junit_xml(targets) as junit_args:
        with self._maybe_emit_coverage_data(targets,
                                            chroot.path(),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 0e632d67fafe0d1017e4c63d1017c1e493382b98
Time: 2015-09-03
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/pytest_run.py
Class Name: PytestRun
Method Name: _test_runner


Project Name: pantsbuild/pants
Commit Name: 0e632d67fafe0d1017e4c63d1017c1e493382b98
Time: 2015-09-03
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/python_repl.py
Class Name: PythonRepl
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: 0e632d67fafe0d1017e4c63d1017c1e493382b98
Time: 2015-09-03
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/python_eval.py
Class Name: PythonEval
Method Name: _compile_target