Bug#846952: execnet: testing/test_channel.py::TestStringCoerce::test_2to3 FAILED

2017-01-12 Thread Daniel Stender
Control: severity -1 important

Like #840466 this is a test failure which appears only in DEP-8 testing. 
Furthermore, it's
hard to reproduce, local autopkgtesting succeeds [1] (gets skipped in a Python2 
environment).
This shouldn't be RC.

[1] http://www.danielstender.com/uploads/execnet-local-dep8.txt

-- 
4096R/DF5182C8
Debian Developer (sten...@debian.org)
LPIC-1 (LPI000329859 64mz6f7kt4)
http://www.danielstender.com/



signature.asc
Description: OpenPGP digital signature


Bug#846952: execnet: testing/test_channel.py::TestStringCoerce::test_2to3 FAILED

2016-12-04 Thread Daniel Stender
Source: execnet
Version: 1.4.1-2
Severity: serious
Justification: fails to build from source

Execnet currently fails in DEP-8 tests [1]:


testing/test_channel.py::TestStringCoerce::test_2to3 FAILED
{...}
=== FAILURES ===
__ TestStringCoerce.test_2to3 __

self = 
makegateway = >

@pytest.mark.skipif('sys.version>="3.0"')
def test_2to3(self, makegateway):
python = _find_version('3')
gw = makegateway('popen//python=%s' % python)
ch = gw.remote_exec('channel.send(channel.receive());'*2)
ch.send('a')
>   res = ch.receive()

testing/test_channel.py:351: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = , timeout = None

def receive(self, timeout=None):
"""receive a data item that was sent from the other side.
timeout: None [default] blocked waiting.  A positive number
indicates the number of seconds after which a channel.TimeoutError
exception will be raised if no item was received.
Note that exceptions from the remotely executing code will be
reraised as channel.RemoteError exceptions containing
a textual representation of the remote traceback.
"""
itemqueue = self._items
if itemqueue is None:
raise IOError("cannot receive(), channel has receiver callback")
try:
x = itemqueue.get(timeout=timeout)
except self.gateway.execmodel.queue.Empty:
raise self.TimeoutError("no item after %r seconds" % (timeout))
if x is ENDMARKER:
itemqueue.put(x)  # for other receivers
>   raise self._getremoteerror() or EOFError()
E   EOFError: couldnt load message header, expected 9 bytes, got 0

execnet/gateway_base.py:737: EOFError
- Captured stderr call -
Exception ignored in: 
Traceback (most recent call last):
  File "", line 602, in __del__
AttributeError: 'Channel' object has no attribute '_closed'


By the way, the package is RFA [2].

Thanks,
DS

[1] 
https://ci.debian.net/data/packages/unstable/amd64/e/execnet/20161203_200139.autopkgtest.log.gz

[2] https://bugs.debian.org/840032

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)