Bugzilla – Bug 1120329
python-sh fails tests on 1-core VM
Last modified: 2019-05-27 12:46:11 UTC
While working on reproducible builds for openSUSE, I found that python-sh fails a test on 1-core-VMs Steps To Reproduce # maybe set build-memory=2048 in ~/.oscrc osc checkout openSUSE:Factory/python-sh && cd $_ osc build --vm-type=kvm -j1 --noservice Actual Result: ====================================================================== ERROR: test_general_signal (__main__.FunctionalTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test.py", line 1416, in test_general_signal p = python(py.name, _out=agg, _tee=True) File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 1427, in __call__ return RunningCommand(cmd, call_args, stdin, stdout, stderr) File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 774, in __init__ self.wait() File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 792, in wait self.handle_command_exit_code(exit_code) File "/home/abuild/rpmbuild/BUILD/sh-1.12.14/sh.py", line 815, in handle_comma nd_exit_code raise exc sh.ErrorReturnCode_1: RAN: /usr/bin/python3.6 /tmp/tmpf1e_0i_0 STDOUT: 0 1 2 3 STDERR: Traceback (most recent call last): File "/tmp/tmpf1e_0i_0", line 14, in <module> print(i) File "/tmp/tmpf1e_0i_0", line 8, in sig_handler print(10) RuntimeError: reentrant call inside <_io.BufferedWriter name='<stdout>'> ---------------------------------------------------------------------- Ran 156 tests in 46.164s FAILED (errors=1, skipped=2) Filing here because last upstream activity was 18 months ago.
SR#705674 can fix this