jerry-git / jerry-git/pytest-split

Exception during test collection results in ZeroDivisionError

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
325
フォーク
56
PR マージ指標
30日以内にマージされた PR はありません

説明

In short, this:
`pytest --splits 3 --group 1`

results in this
```
File "/home/user/.venv/lib/python3.8/site-packages/pytest_split/plugin.py", line 114, in _calculate_suite_start_and_end_idx
avg_duration_per_test = sum(stored_durations.values()) / len(stored_durations)
ZeroDivisionError: division by zero
```

if there's e.g. some `ImportError` during test collection.

The ZeroDivisionError hides the original exception.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。