def read(self, *args): > raise IOError("reading from stdin while output is captured") E IOError: reading from stdin while output is captured /usr/lib64/python2.7/site-packages/_pytest/capture.py:459: IOError =============================== warnings summary =============================== ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 13.0-desktop-plasma-systemd_test_20171025-203252 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-6.4.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python3.6 (fallback) [3] python2.7 (fallback) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.5.1 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv dev-python/pexpect [ebuild N ] dev-python/pexpect-4.2.1 USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_5 -python3_6"
Created attachment 501760 [details] emerge-info.txt
Created attachment 501762 [details] dev-python:pexpect-4.2.1:20171102-112446.log
Created attachment 501764 [details] emerge-history.txt
Created attachment 501766 [details] environment
Created attachment 501768 [details] etc.portage.tbz2
Created attachment 501770 [details] temp.tbz2
Created attachment 501772 [details] tests.tbz2
Same on sparc: ___________________________ FSMTestCase.test_run_fsm ___________________________ self = <tests.test_FSM.FSMTestCase testMethod=test_run_fsm> def test_run_fsm(self): def _input(prompt): return "167 3 2 2 * * * 1 - =" orig_input = getattr(builtins, input_name) orig_stdout = sys.stdout setattr(builtins, input_name, _input) sys.stdout = sio = (io.StringIO if PY3 else io.BytesIO)() try: > FSM.main() tests/test_FSM.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/FSM.py:329: in main inputstr = (input if PY3 else raw_input)('> ') # analysis:ignore _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.capture.DontReadFromInput instance at 0xf6789a80>, args = () def read(self, *args): > raise IOError("reading from stdin while output is captured") E IOError: reading from stdin while output is captured /usr/lib/python2.7/site-packages/_pytest/capture.py:444: IOError _______________________ TestCaseEnv.test_spawn_uses_env ________________________ self = <tests.test_env.TestCaseEnv testMethod=test_spawn_uses_env> def test_spawn_uses_env(self): " pexpect.spawn uses env argument when running child process " script_name = 'spawn_uses_env.sh' environ = {'PEXPECT_TEST_KEY': 'pexpect test value'} with example_script(script_name, '$PEXPECT_TEST_KEY') as script_dir: script = os.path.join(script_dir, script_name) child = pexpect.spawn(script, env=environ) out = child.readline() child.expect(pexpect.EOF) > self.assertEqual(child.exitstatus, 0) E AssertionError: None != 0 tests/test_env.py:68: AssertionError ----------------------------- Captured stdout call -----------------------------
Same with pexpect-4.6.0
Does this still happen? Version 4.6.0 is stable for both archs.
Closing bugs for old versions with the new stabilization round. If you can still reproduce with the newest ~arch version, feel free to reopen.