Skip to content

Commit

Permalink
[tests] clarify RuntimeError in distributed tests(#4452)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Jul 7, 2021
1 parent 90342e9 commit 7f9959f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/distributed/_test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def predict(self, predict_config: Dict[str, Any] = {}) -> np.ndarray:
cmd = [self.executable, f'config={config_path}']
result = subprocess.run(cmd)
if result.returncode != 0:
raise RuntimeError
raise RuntimeError('Error in prediction')
y_pred = np.loadtxt(str(TESTS_DIR / 'predictions.txt'))
return y_pred

Expand Down

0 comments on commit 7f9959f

Please sign in to comment.