pexpect 4.9-1 autopkgtest failing on test_interact_exit_unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pexpect (Ubuntu) |
Fix Released
|
Undecided
|
Graham Inggs |
Bug Description
Against python3-
See:
- https:/
- https:/
- https:/
820s =======
820s _________________ InteractTestCas
820s
820s self = <tests.
820s
820s def test_interact_
820s " Ensure subprocess receives utf8. "
820s p = pexpect.
820s timeout=5, env=self.env)
820s p.expect('READY')
820s p.send('ɑ') # >>> map(ord, u'ɑ'.encode(
820s p.expect(
820s p.expect(
820s p.send('Β') # >>> map(ord, u'Β'.encode(
820s p.expect(
820s p.expect(
820s p.send('\x00')
820s if not os.environ.
820s # on CI platforms, we sometimes miss trailing stdout from the
820s # chain of child processes, not entirely sure why. So this
820s # is skipped on such systems.
820s > p.expect('0<STOP>')
820s
820s tests/test_
820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
820s /usr/lib/
820s return self.expect_
820s /usr/lib/
820s return exp.expect_
820s /usr/lib/
820s return self.eof(e)
820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
820s
820s self = <pexpect.
820s err = EOF('End Of File (EOF). Exception style platform.')
820s
820s def eof(self, err=None):
820s spawn = self.spawn
820s
820s spawn.before = spawn._
820s spawn._buffer = spawn.buffer_type()
820s spawn._before = spawn.buffer_type()
820s spawn.after = EOF
820s index = self.searcher.
820s if index >= 0:
820s spawn.match = EOF
820s spawn.match_index = index
820s return index
820s else:
820s spawn.match = None
820s spawn.match_index = None
820s msg = str(spawn)
820s msg += '\nsearcher: %s' % self.searcher
820s if err is not None:
820s msg = str(err) + '\n' + msg
820s
820s exc = EOF(msg)
820s exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
820s > raise exc
820s E pexpect.
820s E <pexpect.
820s E command: /usr/bin/python3.12
820s E args: [b'/usr/
820s E buffer (last 100 chars): ''
820s E before (last 100 chars): '\r\nEscaped interact\r\n'
820s E after: <class 'pexpect.
820s E match: None
820s E match_index: None
820s E exitstatus: None
820s E flag_eof: True
820s E pid: 1784
820s E child_fd: 17
820s E closed: False
820s E timeout: 5
820s E delimiter: <class 'pexpect.
820s E logfile: None
820s E logfile_read: None
820s E logfile_send: None
820s E maxread: 2000
820s E ignorecase: False
820s E searchwindowsize: None
820s E delaybeforesend: 0.05
820s E delayafterclose: 0.1
820s E delayaftertermi
820s E searcher: searcher_re:
820s E 0: re.compile(
820s
820s /usr/lib/
These tests are ignored when run in CI with the env var "CI". Before pexpect 4.9-1 the env variable used was "TRAVIS". So now these are not ignored ignored anymore.
Changed in pexpect (Ubuntu): | |
assignee: | nobody → Graham Inggs (ginggs) |
status: | New → In Progress |
See my ppa https:/ /launchpad. net/~upils/ +archive/ ubuntu/ test-ppa/ +packages
And successful autopkgtests:
- https:/ /autopkgtest. ubuntu. com/results/ autopkgtest- noble-upils- test-ppa/ noble/amd64/ p/pexpect/ 20240212_ 102715_ a873b@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- noble-upils- test-ppa/ noble/arm64/ p/pexpect/ 20240212_ 103005_ 44dab@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- noble-upils- test-ppa/ noble/s390x/ p/pexpect/ 20240212_ 111956_ 17d92@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- noble-upils- test-ppa/ noble/ppc64el/ p/pexpect/ 20240215_ 090229_ a0e0a@/ log.gz
- https:/
- https:/
- https:/