aloof-angle-91616
01/08/2020, 6:30 PMhundreds-father-404
01/08/2020, 6:31 PM_ PythonTestRunnerIntegrationTest.test_single_passing_test _
self = <pants.backend.python.rules.python_test_runner_integration_test.PythonTestRunnerIntegrationTest testMethod=test_single_passing_test>
def test_single_passing_test(self) -> None:
> result = self.run_pytest([self.good_source])
pants/backend/python/rules/python_test_runner_integration_test.py:108:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pants/backend/python/rules/python_test_runner_integration_test.py:87: in run_pytest
input_snapshot = self.request_single_product(Snapshot, InputFilesContent(source_files))
pants/testutil/test_base.py:447: in request_single_product
self.scheduler.product_request(product_type, [subject])
pants/testutil/test_base.py:410: in scheduler
self._init_engine()
pants/testutil/test_base.py:400: in _init_engine
build_ignore_patterns=None,
pants/init/engine_initializer.py:436: in setup_legacy_graph_extended
visualize_to_dir=bootstrap_options.native_engine_visualize_to,
pants/engine/scheduler.py:116: in __init__
self._assert_ruleset_valid()
pants/engine/scheduler.py:129: in _assert_ruleset_valid
self._raise_or_return(self._native.lib.validator_run(self._scheduler))
pants/engine/scheduler.py:141: in _raise_or_return
return self._native.context.raise_or_return(pyresult)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pants.engine.native.ExternContext object at 0x106260630>
pyresult = <cdata 'PyResult' owning 16 bytes>
def raise_or_return(self, pyresult):
"""Consumes the given PyResult to raise/return the exception/value it represents."""
value = self.from_value(pyresult.handle)
self._handles.remove(pyresult.handle)
if pyresult.is_throw:
> raise value
E Exception: Rules with errors: 1
E (TestResult, [PythonTestsAdaptor, PyTest, PythonSetup, SubprocessEncodingEnvironment], [Get(TransitiveHydratedTargets, BuildFileAddresses), Get(Pex, CreatePexFromTargetClosure), Get(SourceRootStrippedSources, Address), Get(ChrootedPythonSources, HydratedTargets), Get(Digest, DirectoriesToMerge), Get(FallibleExecuteProcessResult, ExecuteProcessRequest)], run_python_test()):
E Was not usable by any other @rule.
pants/engine/native.py:665: Exception
aloof-angle-91616
01/08/2020, 6:32 PMhundreds-father-404
01/08/2020, 6:33 PMinput_snapshot = self.request_single_product(Snapshot, InputFilesContent(source_files))
would fix it, and turns out it did notaloof-angle-91616
01/08/2020, 6:33 PM