pytest-dev / pytest-dev/execnet

test failure in test_close_initiating_remote_no_error[sys.executable]

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

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

Ngôn ngữ chính
Python
Star
102
Fork
47
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

in an attempt to package execnet for openSUSE, our build fails with:

[   18s] =================================== FAILURES ===================================
[   18s] ____________ test_close_initiating_remote_no_error[sys.executable] _____________
[   18s] 
[   18s] testdir = <Testdir local('/tmp/pytest-of-abuild/pytest-3/test_close_initiating_remote_no_error0')>
[   18s] anypython = local('/usr/bin/python2')
[   18s] 
[   18s]     def test_close_initiating_remote_no_error(testdir, anypython):
[   18s]         p = testdir.makepyfile("""
[   18s]             import sys
[   18s]             sys.path.insert(0, sys.argv[1])
[   18s]             import execnet
[   18s]             gw = execnet.makegateway("popen")
[   18s]             print ("remote_exec1")
[   18s]             ch1 = gw.remote_exec("channel.receive()")
[   18s]             print ("remote_exec1")
[   18s]             ch2 = gw.remote_exec("channel.receive()")
[   18s]             print ("termination")
[   18s]             execnet.default_group.terminate()
[   18s]         """)
[   18s]         testdir.makepyfile(apipkg=apipkg)
[   18s]         popen = subprocess.Popen(
[   18s]             [str(anypython), str(p), str(execnetdir)],
[   18s]             stdout=None, stderr=subprocess.PIPE,)
[   18s]         out, err = popen.communicate()
[   18s]         print (err)
[   18s]         err = err.decode('utf8')
[   18s]         lines = [
[   18s]             x for x in err.splitlines()
[   18s]             if '*sys-package' not in x]
[   18s]         # print (lines)
[   18s] >       assert not lines
[   18s] E       assert not ['Traceback (most recent call last):', '  File "/tmp/pytest-of-abuild/pytest-3/test_close_initiating_remote_no_error0/... '  File "/tmp/pytest-of-abuild/pytest-3/test_close_initiating_remote_no_error0/apipkg.py", line 12, in <module>', ...]

Full build log here:
https://build.opensuse.org/package/live_build_log/devel:languages:python/python-execnet/openSUSE_Tumbleweed/x86_64

It looks like some unexpected interaction with apipkg and python 2.7.
Shouldn't this test being excluded for 2.7 then, or do you have other ideas, what's going wrong?

Our build facility attempts to build the package for 2.7 and 3.* by default, depending on the build target.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.

Hướng nghiên cứu

Bắt đầu với test_close_initiating_remote_no_error[sys.executable] và tái hiện lỗi openSUSE trên Python 2.7 với apipkg. Đọc toàn bộ traceback để xác định điểm không tương thích; được coi là hoàn tất khi bài kiểm thử chạy thành công trên các phiên bản Python được hỗ trợ hoặc cách xử lý Python 2.7 đã được giải quyết rõ ràng và được bộ kiểm thử bao phủ.

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
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.