test_asyncio.test_subprocess fails with "env changed" on "AMD64 Debian root 3.x" buildbot: unclosed file <_io.FileIO name=11 mode='wb' closefd=True>
Đang mở
Chưa có ai nhận issue này.
tests
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Time to time, test_asyncio.test_subprocess fails with "env changed" on "AMD64 Debian root 3.x" buildbot.
Example: https://buildbot.python.org/#/builders/2019/builds/114
0:15:58 load avg: 1.70 [450/505/1] test.test_asyncio.test_subprocess failed (env changed)
test_cancel_make_subprocess_transport_exec (test.test_asyncio.test_subprocess.SubprocessPidfdWatcherTests.test_cancel_make_subprocess_transport_exec) ... ok
(...)
test_subprocess_repr (test.test_asyncio.test_subprocess.SubprocessTransportTests.test_subprocess_repr) ... ok
----------------------------------------------------------------------
Ran 81 tests in 10.074s
OK
Warning -- Unraisable exception
Exception ignored while finalizing file <_io.FileIO name=11 mode='wb' closefd=True>:
Traceback (most recent call last):
File "/root/buildarea/3.15.angelico-debian-amd64/build/Lib/test/support/__init__.py", line 948, in gc_collect
gc.collect()
~~~~~~~~~~^^
ResourceWarning: unclosed file <_io.FileIO name=11 mode='wb' closefd=True>
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với test/test_asyncio/test_subprocess.py và lỗi test_asyncio.test_subprocess được hiển thị trong AMD64 Debian buildbot log. Chạy test liên quan và kiểm tra cách các tài nguyên subprocess được hoàn tất trong các test bị lỗi. Hoàn thành khi lỗi không liên tục "env changed" và unclosed FileIO ResourceWarning không còn xảy ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- testing-qa
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100