6d8625611ff936bab56d15a2b36e0aba7e54612e,src/python/pants/backend/python/tasks2/pytest_run.py,PytestRun,_do_run_tests,#PytestRun#Any#Any#,453
Before Change
return run_and_analyze(resultlog_arg)
else:
with temporary_file_path() as resultlog_path:
args.insert(0, "--resultlog={0}".format(resultlog_path))
return run_and_analyze(resultlog_path)
def _pex_run(self, pex, workunit, args, env):
process = self._spawn(pex, workunit, args, setsid=False, env=env)
After Change
// Validate that the user didn"t provide any passthru args that conflict
// with those we must set ourselves.
for arg in self.get_passthru_args():
if arg.startswith("--junitxml") or arg.startswith("--confcutdir"):
raise TaskError("Cannot pass this arg through to pytest: {}".format(arg))
junitxml_path = self._get_junit_xml_path(targets)
// N.B. the `--confcutdir` here instructs pytest to stop scanning for conftest.py files at the
// top of the buildroot. This prevents conftest.py files from outside (e.g. in users home dirs)
// from leaking into pants test runs. See: https://github.com/pantsbuild/pants/issues/2726
args = ["--junitxml", junitxml_path, "--confcutdir", get_buildroot()]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: 6d8625611ff936bab56d15a2b36e0aba7e54612e
Time: 2017-03-30
Author: benjyw@gmail.com
File Name: src/python/pants/backend/python/tasks2/pytest_run.py
Class Name: PytestRun
Method Name: _do_run_tests
Project Name: mailgyc/doudizhu
Commit Name: 001177e85fe09a3a2fd4c30600a42b92902b3d43
Time: 2019-09-30
Author: gaoyc@outlook.com
File Name: doudizhu/apps/account/views.py
Class Name: SignupHandler
Method Name: post
Project Name: sahana/eden
Commit Name: e7f57f40dfe58e677f9b68bac013466649abd23d
Time: 2019-11-22
Author: fran@aidiq.com
File Name: modules/templates/CCC/controllers.py
Class Name:
Method Name: auth_user_register_onaccept