Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

pytest-timeout doesn't work with pytest-rerunfailures.

Đang mở
#18 5 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing-qa

Hướng nghiên cứu

Bắt đầu bằng cách chạy ví dụ tối thiểu với pytest 3.0.7, pytest-rerunfailures 2.1.0 và pytest-timeout 1.0.0 để quan sát timeout hoạt động như thế nào qua các lần thử lại. Theo dõi sự tương tác giữa hai plugin và xác nhận rằng một test ngủ trong 10 giây với timeout 2 giây sẽ bị gián đoạn ngay cả khi được đánh dấu để chạy lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug major

Original report by Anonymous.


pytest-timeout plugin doesn't work when pytest-rerunfailures is used. Please see a example at the end of this bug report

  • pip list of the virtual environment you are using
alabaster (0.7.10)
apipkg (1.4)
appnope (0.1.0)
astroid (1.4.9)
Babel (2.4.0)
bleach (1.5.0)
CommonMark (0.5.4)
coverage (4.3.4)
cycler (0.10.0)
decorator (4.0.11)
docopt (0.6.2)
docutils (0.13.1)
entrypoints (0.2.2)
execnet (1.4.1)
flake8 (3.3.0)
html5lib (0.999)
imagesize (0.7.1)
ipykernel (4.6.1)
ipyparallel (6.0.2)
ipython (6.0.0)
ipython-genutils (0.2.0)
ipywidgets (6.0.0)
isort (4.2.5)
jedi (0.10.2)
Jinja2 (2.9.6)
joblib (0.11)
jsonschema (2.6.0)
jupyter (1.0.0)
jupyter-client (5.0.1)
jupyter-console (5.1.0)
jupyter-core (4.3.0)
lazy-object-proxy (1.2.2)
MarkupSafe (0.23)
matplotlib (2.0.2)
mccabe (0.6.1)
mistune (0.7.4)
nbconvert (5.1.1)
nbformat (4.3.0)
nose (1.3.7)
notebook (5.0.0)
numpy (1.12.1)
pandas (0.20.1)
pandocfilters (1.4.1)
pexpect (4.2.1)
pickleshare (0.7.4)
pip (9.0.1)
prompt-toolkit (1.0.14)
psycopg2 (2.7.1)
ptyprocess (0.5.1)
py (1.4.33)
pyarrow (0.2.0)
pycodestyle (2.3.1)
pyflakes (1.5.0)
Pygments (2.2.0)
pylint (1.6.4)
pyparsing (2.1.4)
pytest (3.0.7)
pytest-cache (1.0)
pytest-instafail (0.3.0)
pytest-rerunfailures (2.1.0)
pytest-timeout (1.0.0)
python-dateutil (2.6.0)
pytz (2017.2)
pyzmq (16.0.2)
qtconsole (4.3.0)
recommonmark (0.4.0)
requests (2.14.2)
scikit-learn (0.18.1)
scipy (0.19.0)
seaborn (0.7.1)
setuptools (27.2.0)
simplegeneric (0.8.1)
simplejson (3.10.0)
six (1.10.0)
snakeviz (0.4.1)
snowballstemmer (1.2.1)
Sphinx (1.5.6)
sphinx-rtd-theme (0.2.4)
SQLAlchemy (1.1.9)
terminado (0.6)
testpath (0.3)
tornado (4.5.1)
traitlets (4.3.2)
typing (3.6.1)
wcwidth (0.1.7)
wheel (0.29.0)
widgetsnbextension (2.0.0)
wrapt (1.10.10)
  • pytest and operating system versions
OS : OSX El Captian 
pytest --version
This is pytest version 3.0.7, 
  pytest-instafail-0.3.0 at 
  pytest-rerunfailures-2.1.0 at 
  pytest-timeout-1.0.0 at
  • Minimal example if possible
import pytest
import time


@pytest.mark.timeout(2)
@pytest.mark.flaky(3) # comment this line to see the test fail as expected
def test_new():
    time.sleep(10)
    assert True
Ngôn ngữ chính
Python
Star
260
Fork
69
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pytest-dev/pytest-timeout

Tất cả issue của pytest-dev/pytest-timeout

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.